Space banner This space provides the same content as before, but the organization of the home page has changed. The content is now organized based on logical branches instead of legacy book titles. We hope that the new structure will help you quickly find the content that you need.

SRMJOB02—Migrate a data set to migrate level 1


The SRMJOB02 skeleton JCL member is coded in the ACT_JOB parameter.

SRMJOB02 executes the HMIGRATE TSO command in batch. When run against non-migrated data sets, SRMJOB02 migrates the data sets to migration level 1. The WAIT parameter keeps the job from ending until DFSMShsm has finished processing. If WAIT was not coded, the HMIGRATE commands would be issued, and the job would end immediately, causing job-end notification to occur before the automation against the resource actually finished processing. As a result, subsequent automation processing against the resource could be initiated before the current (DFSMShsm) processing is finished. Processing two solutions against one resource simultaneously could alter the predetermined solution plan and alter the end results.

Each record passed would cause the control statements to be repeated as they are encompassed in the DO loop. Therefore, this example would submit one batch job that contains 20 HMIGRATE commands (assuming that ACT_COUNT=20 and 20 data sets match the FLST/RLST criteria). For more information about skeleton tailoring, see Skeleton-tailoring.

SRMJOB02 skeleton JCL example

//SRMJOB02 JOB (XXXX),'XXXXX',CLASS=A,MSGCLASS=X                       
//*    TYPRUN=HOLD                                                     
//******************************************************************
//*        MIGRATE ML1                                              *
//******************************************************************
//*        SOLUTION IS &SOL                                            
//*        FUNCTION IS &FUNC                                           
//******************************************************************
//MIGRATE1 EXEC PGM=IKJEFT01                                           
//SYSPRINT DD   SYSOUT=*                                               
//SYSTSPRT DD   SYSOUT=*                                               
//SYSTERM  DD   SYSOUT=*                                               
//SYSTSIN  DD  *                                                       
)DO                                                                    
//* HMIGRATE '&DSN' WAIT                                               
)END                                                                   
/*                                                                     
//



 

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