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.

SRMJOB03—Delete a data set


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

SRMJOB03 is a basic IEFBR14 that allocates the data set and deletes it. Each record that is passed causes the DD statements to be repeated as they are included in the DO loop. Therefore, in this distributed solution, one batch job is submitted containing a number of DD statements as matches the number of data sets that passed filtering. For more information about skeleton tailoring, see Skeleton-tailoring.

SRMJOB03 skeleton JCL example

//SRMJOB03 JOB (3500),'XXXXX',CLASS=A,MSGCLASS=X                      
//*    TYPRUN=HOLD                                                    
//******************************************************************
//*        DELETE DATA SET                                          *
//******************************************************************
//*        SOLUTION IS &SOL                                           
//*        FUNCTION IS &FUNC                                          
//******************************************************************
//STEP0001 EXEC PGM=IEFBR14                                           
//SYSPRINT DD SYSOUT=*                                                
)DO                                                                   
//*DD&I DD DISP=(OLD,DELETE,DELETE),                                  
//*         DSN=&DSN,                                                 
//*         VOL=SER=&VOLSER,                                          
//*         UNIT=SYSALLDA                                             
)END



 

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