Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Hi, all
suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if
cond is true or false (which of the other steps get executed)?
1) //s3 exec pgm=abc,cond=(0,le)
2) //s3 exec pgm=abc,cond=(0,le,step2)
3) In the jobcord RESTART=step3,cond=(0,le)
4) can i code COND=TRUE in jobcard, if yes what will happen?

Answers were Sorted based on User's Feedback



Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which o..

Answer / muttaiah

Let me clear you on what is cond and rstart:

Cond: say if you have coded a cond stmt for a step. If the
condition is met then it won't execute. If the condition is
false it will execute the step.

Restart: is used to restart the job from a particular step.
When you are restarting a job from step3 say. Then whatever
the cond parm on step3 it will ignore and it restarts from
step3.

Let me answer the points now.

1) //s3 exec pgm=abc,cond=(0,le)
<ANS> If you code cond=(0,le) then this condition will
check for all previous steps for cond code since 0 is
always less than or equal to return code from previous
steps it will bypass the step S3
2) //s3 exec pgm=abc,cond=(0,le,step2)
<ANS> Similar as answer 1, But here it will look only for
Return code from step step2 only. Even in this case it will
skip the step s3
3) In the jobcord RESTART=step3,cond=(0,le)
<ANS> This will run only step step3 in the job. Coding a
cond in job is like applying it to all steps..
4) can i code COND=TRUE in jobcard, if yes what will happen?
<ANS> We can code only cond as EVEN or ONly or in the
format as (condition,RO,Stepname)
where condition = 0 - 4096
RO = LE, LT, GT, GE, EQ, NE
stepname - step name of the job to look for return code.

Hope this makes sense. Do let me know if you need any
clarifications.

Is This Answer Correct ?    8 Yes 0 No

Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which o..

Answer / muttaiah

Nishant,

let me tell you the diff b/w these 2 cond stmts

cond=(RC,RO,stepname) & cond=(RC,RO)

Say when we code the stepname, It will look for the Return
code from that step alone.

Say if i ignore the stepname sub parm, Then what are all
the steps executed before this all those return codes are
checked with the condition specified.

1) //s3 exec pgm=abc,cond=(0,le)
In this question, since they didn't mention the number
of steps coded before s3, s3 looks for what are all the
steps run before this and compares all steps return code
with the cond if the condition is true it will bypass else
it will execute.
2) //s3 exec pgm=abc,cond=(0,le,step2)
Here they have mentioned clearly to the JCL, like look
for only return code from step2..

Hope this clears your doubt. If you have any other doubt.
Please mail me @ mainframe.technology@gmail.com

Is This Answer Correct ?    4 Yes 0 No

Hi, all suppose i have 5 steps (S1,S2,S3,S4,S5) what will happen if cond is true or false (which o..

Answer / nishant singhal

Muttaiah you have explained very well but i have one doubt
here...

for these below 2 questiones

1) //s3 exec pgm=abc,cond=(0,le)
2) //s3 exec pgm=abc,cond=(0,le,step2)

cond=(0,le) should check return code from previous step ie
s2 because if you are not giving any step in your cond
parameter then by default it will check return code from
its previous step and it will work like same as mentioned
in question 2.

Please correct me if i am wrong and let me know how it will
look for all the previous steps ie s1 & s2.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More JCL Interview Questions

what is alternate index?

1 Answers  


Do we need to code DCB parameters when using DISP position as MOD?

1 Answers   Accenture,


if my GDG limit has been kept as 50 and if am trying to put 60 records.what would happen. will there be any abend for this scenario

4 Answers  


Which is the most widely used batch performance monitor for DB2?

2 Answers  


Which statement is used to identify the private libraries in job?

0 Answers  


On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?

2 Answers  


How does jcl act on a cobol code?

0 Answers  


What is a JCL Command statement ?

1 Answers   IBM,


List some valid operation codes in JCL

3 Answers  


I am having one step in my jcl.in that step,i am calling one proc.In that proc,i have 10 steps.i want to call a particular step in that proc without writing any new jcl ike iebedit utility...

2 Answers   Satyam,


I have DATE filed like DD-MM-YYYY, So I want output should be MM/DD/YYYY using JCL? Can anybody post the answer for above requirement?

4 Answers   BirlaSoft, FIS, Wipro,


How do you handle empty files in a JCL ?

3 Answers   Wipro, Xansa,


Categories