Re: Question if COND code / IF THEN struct

2009-06-30 Thread Paul Ip
It works! Thanks for your example... It seems to me that IF (STEP0001.PRCSTEP3.RC = 0) (STEP0002.PRCSTEP3.RC = 0) THEN before STEP0003 is simply the same as IF STEP0002.PRCSTEP3.RC = 0 THEN So in case I need to execute the PROC1 many times, say STEP EXEC PROC1, all I need to do is to use

Re: Question if COND code / IF THEN struct

2009-06-29 Thread Paul Ip
---snip--- As a circumventive measure, one, less desirable choice, is to resort to either coding multiple PROC instances with specific check conditions or use JCL INCLUDE statements to externalize your individual PROC rqmt conditions and enclose the IF/THEN/ENDIF statements as needed for the first

Re: Question if COND code / IF THEN struct

2009-06-29 Thread Scott Barry
On Mon, 29 Jun 2009 01:13:50 -0500, Paul Ip paul...@boci.com.hk wrote: ---snip--- As a circumventive measure, one, less desirable choice, is to resort to either coding multiple PROC instances with specific check conditions or use JCL INCLUDE statements to externalize your individual PROC rqmt

Re: Question if COND code / IF THEN struct

2009-06-29 Thread Barkow, Eileen
To: IBM-MAIN@bama.ua.edu Subject: Re: Question if COND code / IF THEN struct On Sun, 28 Jun 2009 01:56:59 -0500, Paul Ip paul...@boci.com.hk wrote: Hi all, If I have an JCL with an instream PROC: PROC1 PROC PRCSTEP1 EXEC PGM=XXX INPUT DD DSN=FILE PRCSTEP2 EXEC PGM=YYY INPUT DD

Re: Question if COND code / IF THEN struct

2009-06-29 Thread Scott Barry
On Mon, 29 Jun 2009 11:01:58 -0500, Paul Ip paul...@boci.com.hk wrote: Hi, Thanks for your information! I should rephrase my question, I know how to use JCLLIB / INCLUDE statement within a JCL but I don't get your idea about externalize your individual PROC rqmt conditions and enclose the

Re: Question if COND code / IF THEN struct

2009-06-29 Thread Schwarz, Barry A
Message- From: Paul Ip Sent: Saturday, June 27, 2009 11:57 PM To: IBM-MAIN@bama.ua.edu Subject: Question if COND code / IF THEN struct Hi all, If I have an JCL with an instream PROC: PROC1 PROC PRCSTEP1 EXEC PGM=XXX INPUT DD DSN=FILE PRCSTEP2 EXEC PGM=YYY INPUT DD DSN=FILE

Question if COND code / IF THEN struct

2009-06-28 Thread Paul Ip
Hi all, If I have an JCL with an instream PROC: PROC1 PROC PRCSTEP1 EXEC PGM=XXX INPUT DD DSN=FILE PRCSTEP2 EXEC PGM=YYY INPUT DD DSN=FILE PRCSTEP3 EXEC PGM=ZZZ INPUT DD DSN=FILE PEND STEP0001 EXEC PROC1,FILE=A1 STEP0002 EXEC PROC1,FILE=A2 STEP0003 EXEC

Re: Question if COND code / IF THEN struct

2009-06-28 Thread Scott Barry
On Sun, 28 Jun 2009 01:56:59 -0500, Paul Ip paul...@boci.com.hk wrote: Hi all, If I have an JCL with an instream PROC: PROC1 PROC PRCSTEP1 EXEC PGM=XXX INPUT DD DSN=FILE PRCSTEP2 EXEC PGM=YYY INPUT DD DSN=FILE PRCSTEP3 EXEC PGM=ZZZ INPUT DD DSN=FILE PEND

Re: Question if COND code / IF THEN struct

2009-06-28 Thread Paul Gilmartin
On Sun, 28 Jun 2009 10:43:42 -0500, Scott Barry wrote: Oh well - another strike against JCL coding optimization attempts, while having somewhat similar angst with nested PROCs to some degree, mostly with restart/recovery attempts. Have you ever suspected that IBM accepted a Requirement for