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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm


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