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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

1208


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2541


What is the function of //cntl statement?

1315


How is the record format of an output dataset specified?

1139


How is a type of file defined in the jcl that executes the cobol program?

1170


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

1087


what are JCLLIB and STEPLIB in JCL?

1157


what is the compile process of cobol program expalin with code

2558


Explain the purpose of dd * statement in jcl?

1045


What happens if both JOBLIB & STEPLIB is specified ?

1123


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1211


What is the function of dd name parameter with a 2 part structure; audit.report?

1213


What is the function of the dd dcb keyword?

1313


Is it possible to left uncode disp?

1186


Describe the various parameters utilized in the creation of a gdg?

1139