Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
IF/THEN/ELSE FOR JCL STEPLIB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
MurthyJ

New User


Joined: 12 Mar 2008
Posts: 2
Location: hyd

PostPosted: Thu May 01, 2008 6:55 am    Post subject: IF/THEN/ELSE FOR JCL STEPLIB
Reply with quote

Hi Friends,

Can we use IF/THEN/ELSE conditions as follows,IF
SO can you please provide me an example...

//STEP1 TO READ A FILE
(The file will have a single value either 1 or 0)
//STEP2 EXEC PGM=P1
//IF FILE.VALUE = 1 THEN
//STEPLIB DD DSN=LOAD1 LIBRARY
//ELSE
//STEPLIB DD DSN=LOAD2 LIBRARY
//ENDIF

Its really appreciable.
Back to top
View user's profile Send private message
References
PostPosted: Thu May 01, 2008 6:55 am    Post subject: Re: IF/THEN/ELSE FOR JCL STEPLIB Reply with quote

dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 6033
Location: 221 B Baker St

PostPosted: Thu May 01, 2008 7:31 am    Post subject:
Reply with quote

Hello,

Sorry, no.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1