Tuesday, December 6, 2011

JCL: Run a specific step in a PROC

Is it possible to run a specific step alone in a single proc ? 

Suppose I have a Proc XXXX which has 3 Steps. I have a JCL executing XXXX proc. I just want to execute second step alone without executing the first and third step. Is this possible ?

Option 1
Condition out steps you don't want to execute. 

//*
//XXXX   PROC                                    
//PS01    EXEC PGM=IEFBR14                        
//PS02    EXEC PGM=IEFBR14                        
//PS03    EXEC PGM=IEFBR14                        
//        PEND                                    
//*                                                
//STEP01  EXEC 
XXXX,COND.PS01=ONLY,COND.PS03=(0,LE)
//*


Option 2
Giving RESTART=STEP01.PS02 in jobcard and

//STEP01  EXEC PPPPP,COND.PS03=(0,LE) 
//*

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.