JCL requirements for the clone method


The following figure shows sample JCL for the clone method (PGM=CPCTCLON).

//Jobname        JOB   (ACCT#),Name,MSGCLASS=X,CLASS=Q,                 
//            NOTIFY=&SYSUID                            
//*                                                                
//Stepname EXEC PGM=CPCTCLON                                        
//STEPLIB DD DISP=SHR,DSN=BMC.LOAD                          
//SYSUDUMP DD SYSOUT=*                                             
//CPCLOG DD SYSOUT=*                                             
//CPCTRACE DD SYSOUT=*                                             
//CPCMSG DD SYSOUT=*                                             
//BMCMSG DD SYSOUT=*                                             
//CPC$xxxx DD DUMMY                                              
//CPCSYSIN DD *                                                  
 CLONE  FROMRECON(xxxxxxxx.RECON1)   +                       
        TORECON(yyyyyyyy.RECON1)        +                       
        DGNAME(THRESHOLD_VALUES)                                   
 MASK   OLDDBDNAME(CUSTOMER) NEWDBDNAME(CUSTXXXX)
 MASK   OLDDBDNAME(CUSTOME1) NEWDBDNAME(CUSTYYYY)    
 MASK   OLDDBGROUP(CUSTOME*) NEWDBGROUP(****YYYY)    
 MASK   OLDDBGROUP(ALL)      NEWDBGROUP(ZZZZ)        
/*

The following DD statement requirements apply to the clone method:

  • CPC$xxxx DD can be used to override the default and connect to a specific Advisor system.
  • CPCSYSIN DD is for the command input.

The following figure shows sample JCL for the batch export job (PGM=CPCTCLON).

//Jobname         JOB   (ACCT#),Name,MSGCLASS=X,CLASS=Q,         
//            NOTIFY=&SYSUID                    
//*                                                        
//CPCTEST EXEC PGM=CPCTCLON                                
//STEPLIB DD DISP=SHR,DSN=BMC.LOAD                  
//SYSUDUMP DD SYSOUT=*                                     
//CPCLOG DD SYSOUT=*                                     
//CPCTRACE DD SYSOUT=*                                     
//CPCMSG DD SYSOUT=*                                     
//BMCMSG DD SYSOUT=*                                     
//CPC$xxxx DD DUMMY                                      
//CPCSYSIN DD *                                          
 EXPORT FROMRECON(xxxxxxxx.RECON1)   +               
        TORECON(yyyyyyyy.RECON1)        +               
        DGNAME(THRESHOLD_VALUES)                           
/*                                                               
//CPCEXPRT DD  DSN=xxxxxxxx.clonthre.EXPORT,DISP=(NEW,CATLG),     
//  UNIT=xxxxxx,SPACE=(CYL,(5,1)),DCB=(BLKSIZE=15000)

The following DD statement requirements apply to the batch export job:

  • CPC$xxxx DD can be used to override the default and connect to a specific Advisor system.
  • CPCSYSIN DD is for the command input.
  • CPCEXPRT DD describes the physical sequential data set to which data is written.

The following figure shows sample JCL for the batch import job (PGM=CPCTCLON).

//Jobname         JOB   (ACCT#),Name,MSGCLASS=X,CLASS=Q,             
//            NOTIFY=&SYSUID                        
//*                                                            
//CPCTEST EXEC PGM=CPCTCLON                                    
//STEPLIB DD DISP=SHR,DSN=BMC.LOAD                      
//SYSUDUMP DD SYSOUT=*                                         
//CPCLOG DD SYSOUT=*                                         
//CPCTRACE DD SYSOUT=*                                         
//CPCMSG DD SYSOUT=*                                         
//BMCMSG DD SYSOUT=*                                         
//CPC$xxxx DD DUMMY                                            
//CPCSYSIN DD *                                              
 IMPORT FROMRECON(RCNBHM.RWS.R71.RECON1)   +                   
        TORECON(DBU.QA.SMK1.RECON1)        +                   
        DGNAME(THRESHOLD_VALUES)  
  INCLUDE DBGROUP(ALLDB) DBDNAME(CUSTOMER) PARTNAME(*)
  EXCLUDE DBGROUP(ALLDB) DBDNAME(DBD1) PARTNAME(*)
 MASK   OLDDBDNAME(CUSTOMER) NEWDBDNAME(CUSTXXXX)
 MASK   OLDDBDNAME(CUSTOME1) NEWDBDNAME(CUSTYYYY)    
 MASK   OLDDBGROUP(CUSTOME*) NEWDBGROUP(****YYYY)    
 MASK   OLDDBGROUP(ALL)      NEWDBGROUP(ZZZZ)      
/*                         
//CPCIMPRT  DD  DSN=xxxxxxxx.clonthre.EXPORT,DISP=SHR

The following DD statement requirements apply to the batch import job:

  • CPC$xxxx DD can be used to override the default and connect to a specific Advisor system.
  • CPCSYSIN DD is for the command input.
  • CPCIMPRT DD is the physical sequential data set that is created during the export process.

 

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

BMC AMI Database Advisor for IMS 3.2