Procedure
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Procedure Author: javedsk12Location: pune PostPosted: Fri Jan 04, 2008 4:17 am
    —
Hi

Again i have the question on procedure i have 4 steps in my proc and i want to skip 1 and 4th one. is it possible to skip like this way??if possible then how??i do not want to code any condition on my proc....what ever condition i will be coding is through my jcl.



javed

#2:  Author: petluriLocation: Virginia, USA PostPosted: Fri Jan 04, 2008 8:46 am
    —
You can try it the following way...

Code:
//STEP01  EXEC procname,                         
//            COND.STEP010=(0,LE),    SKIP THIS PROCSTEP
//            COND.STEP030=(0,LE),    SKIP THIS PROCSTEP
//            COND.STEP040=(0,LE),    SKIP THIS PROCSTEP
//            COND.STEP045=(0,LE),    SKIP THIS PROCSTEP

#3:  Author: expatLocation: Welsh Wales PostPosted: Sat Jan 05, 2008 3:35 am
    —
BUT .................... Always put an EXEC of some kind before the PROC, such as

//DUMMY EXEC PGM=IEFBR14

if you use this technique to skip the first step of a PROC. If the PROC is the first EXEC, then the first step of the PROC will run regardless of the RC checking as it would be the first job step with no previous steps to check against.

#4:  Author: vkphani PostPosted: Mon Jan 07, 2008 5:02 am
    —
javed,

Code like below in your JCL.

Code:

//JCLSTEP EXEC PROC,COND.STEP1=(00,LE),COND.STEP4=(00,LE)

#5: procedure Author: javedsk12Location: pune PostPosted: Tue Jan 08, 2008 6:09 am
    —
thanks to vkpani,petluri.



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group