IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

QUESTIONS ON COND PARAMETER


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Thu May 26, 2005 10:17 am
Reply with quote

Hi,
Can anybody give the answer of the following questions.
There are 3 steps in the JCL:
How you can bypass step2 in your JCl by using cond parameter in each time.

How can you run a step2 all the times by using cond parameters(without giving cond=even). Even the previous step fails you have to execute step2.
Back to top
View user's profile Send private message
srividya.srinivasan

New User


Joined: 30 Mar 2005
Posts: 11
Location: Pune, India

PostPosted: Fri May 27, 2005 11:40 am
Reply with quote

Hi Subhasis,

To bypass step2 in your JCL give COND(0,GT,Step1), coz u r return Code will always be either Equal to or greater than 0.

Similarly to Execute your step 2 everytime give COND(0,LT,Step1), Coz the return Code will never be less than zero


Please let me know if u have any queries.
regards,
Vidya
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Fri May 27, 2005 11:53 am
Reply with quote

Hi,
Thnx Vidya
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat May 28, 2005 11:25 pm
Reply with quote

I have a ques:

What happens to step2 if step1 passes a RC=4?
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Tue May 31, 2005 12:28 pm
Reply with quote

Hi Subhasis,

To execute the step STEP2 all the time irrespective of the return code of previuos step using COND parameter
COND=(STEP1,GT,4095)

And similarly if you want the STEP2 should never execute
COND=(STEP1,LE,4095).

All suggestions are welcome.

regards,
David.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
Search our Forums:

Back to Top