Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL - Is there a way to have repeat logic in JCL code?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sivaplv

New User


Joined: 15 Mar 2005
Posts: 17
Location: Toronto, Canada

PostPosted: Fri Mar 18, 2005 12:57 pm    Post subject: JCL - Is there a way to have repeat logic in JCL code?
Reply with quote

Hi,

I need to perform cretain sequence of JCL steps until certain condition code is received. Is there a way out?

Thanks,
Siva.
Back to top
View user's profile Send private message

kavi

New User


Joined: 03 Mar 2005
Posts: 2

PostPosted: Fri Mar 18, 2005 2:58 pm    Post subject:
Reply with quote

You can use

// IF <stepname>.RC = 0 THEN
//STEP1 EXEC PGM=XXX
// ELSE
//STEP2 EXEC PG=YYY
// END-IF
//
Back to top
View user's profile Send private message
sivaplv

New User


Joined: 15 Mar 2005
Posts: 17
Location: Toronto, Canada

PostPosted: Fri Mar 18, 2005 3:15 pm    Post subject: Re: JCL - Is there a way to have repeat logic in JCL code?
Reply with quote

Hi Kavi,

I am not looking for IF ....ELSE way, since I need to loop may JCL steps until the certain RC condition is met. Looking for something like PERFORM UNTIL or DO WHILE, to enclose a sequence of steps together that need be executed in that loop.

Any Ideas?

Thanks,
Back to top
View user's profile Send private message
sivaplv

New User


Joined: 15 Mar 2005
Posts: 17
Location: Toronto, Canada

PostPosted: Sun Mar 20, 2005 10:59 am    Post subject: Re: JCL - Is there a way to have repeat logic in JCL code?
Reply with quote

Hi,

Can somebody, please, advise on this one? If there is no solution within JCL, then I will try to use REXX to create dynamic JCL to solve this problem.

Thanks,
Back to top
View user's profile Send private message
Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Sun Mar 20, 2005 2:01 pm    Post subject: Re: JCL - Is there a way to have repeat logic in JCL code?
Reply with quote

No, not within a single job. You would have to logically repeat the submission of the entire job until your control criteria was met.

For more information on MVS JCL, please revire the "z/OS MVS JCL Reference":

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/CCONTENTS?DT=20040712170508
Back to top
View user's profile Send private message
sivaplv

New User


Joined: 15 Mar 2005
Posts: 17
Location: Toronto, Canada

PostPosted: Sun Mar 20, 2005 11:01 pm    Post subject: Re: JCL - Is there a way to have repeat logic in JCL code?
Reply with quote

Hi Prandip,

Thanks for your reply.

Hi Moderator,

Please mark this as SOLVED.

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

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us