Example 3: Creating and dynamically allocating output copies

In the following example, BMC AMI Recover recovers one partition of the table space and creates one image copy. BMC AMI Recover uses dynamic allocation for the image copy.

The OUTPUT command is used to dynamically allocate the copy that is made.

JCL for recovering one partition and creating an image copy

//AFREX03 JOB (PAFR),'EXAMPLE 3', 
//       CLASS=Q,NOTIFY=&SYSUID, 
//       MSGCLASS=X 
//* 
//RECOVER EXEC PGM=AFRMAIN,REGION=0M, 
//             PARM='DGE,EXAMPLE03,NEW/RESTART,MSGLEVEL(2)' 
//STEPLIB  DD DISP=SHR,DSN=product.libraries
//         DD DISP=SHR,DSN=DB2.DSNEXIT
//         DD DISP=SHR,DSN=DB2.DSNLOAD
//SYSIN     DD * 
 OUTPUT CP00001 
   DSNAME RDASTC.BMCDBSMP.BMCTS011.COPYDS3(+1) 
   UNIT SYSDA 
   MODELDCB SYS1.MODEL 
   SPACE (20,1) CYL 
 RECOVER TABLESPACE BMCDBSMP.BMCTS011 DSNUM 03 
   OUTCOPY YES 
   OUTCOPYDDN CP00001 
/* 
//


Was this page helpful? Yes No Submitting... Thank you

Comments