Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How do you skip a particular proc in a proc?

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

New User


Joined: 27 Apr 2007
Posts: 20
Location: Chennai

PostPosted: Thu Jul 23, 2009 1:06 pm    Post subject: How do you skip a particular proc in a proc?
Reply with quote

Hello,

I have a scenario wherein from a Job am executing a single proc.

In that proc, am executing mulitple steps.

For example

SAMPRC PROC

STEP1 EXEC PGM=IKJEFT01
....
....
STEP2 EXEC PROC1
....
....

Note: I WANT TO EXECUTE THIS PROC1 BASED ON THE RETURN CODE OF STEP1 (of SAMPRC), IF RETURN CODE IS NOT SATISFIED, THEN I WILL BYPASS THE PROC.

I tried with COND code parameter, but it searches for STEP1 in the called proc instead of the parent proc.

let me know your comments.

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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 23, 2009 1:09 pm    Post subject:
Reply with quote

Please post what you have tried, and give a detailed description of

a) What happened
b) What conditions you want to use to bypass PROC1
Back to top
View user's profile Send private message
Swami-gs

New User


Joined: 27 Apr 2007
Posts: 20
Location: Chennai

PostPosted: Thu Jul 23, 2009 2:18 pm    Post subject: Reply to: How do you skip a particular proc in a proc?
Reply with quote

Hello,

I just want to know whether a condition code check can be done on a step which executes a proc.

See my code below.

//SAMPRC PROC
//STEP01 EXEC PGM=SYNCSORT
.......
.......
//*
//STEP02 EXEC RPRB,COND.STEP01=(0,NE)
.......
.......

Here, STEP01 executes a sort step. I want to execute STEP02 only if the return code of STEP01 is ZERO.
I thought I can can handle this with a COND parameter. But in my case its executing a proc. So I am facing a JCL error, because it tries to search STEP01 in RPRB proc.

Thanks
Swami
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jul 23, 2009 2:45 pm    Post subject:
Reply with quote

Quote:
So I am facing a JCL error, because it tries to search STEP01 in RPRB proc.

Yes, it will. That is because the syntax you are using is saying that is precisesly the condition overriding in RPRB. If it isn't found ..........

Please use the JCL reference manual - easily accessible from the "IBM Manuals" button at the top of each page, and read the sections on COND and IF/THEN/ELSE processing to clarify your situation.
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
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us