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                                                      
/*ROUTE XEQ BMCPLX1                                                      
/*JOBPARM SYSAFF=DB2B                                                    
//*                                                                      
//RECOVER EXEC PGM=AFRMAIN,REGION=0M,                                    
//             PARM='DEJM,EXAMPLE03,NEW/RESTART,MSGLEVEL(2)'           
//STEPLIB  DD DISP=SHR,DSN=product.libraries
//         DD DISP=SHR,DSN=DB2.DSNEXIT
//         DD DISP=SHR,DSN=DB2.DSNLOAD
//*                                                                      
  OUTPUT CP00001                                                         
    DSNAME AFR.BMCDBSP2.IXTST02.LP(+1)                                   
    UNIT SYSDA                                                           
    MODELDCB SYS1.MODEL                                                  
    SPACE (20,5) CYL                                                     
  RECOVER TABLESPACE BMCDBSP2.IXTST02 DSNUM 01                           
    OUTCOPY YES                                                          
    OUTCOPYDDN CP00001                                                   
/*                                                                       
//                                                                       

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*