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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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