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...


Ques: How can we code COND parameter in a JCL so that only
even steps (or only odd steps) get execute??

Answers were Sorted based on User's Feedback



Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get exec..

Answer / muttaiah

I think in this way you can achieve your requirement.
For ODD steps:
Code cond=(0,LE) or cond=(4096, GT) on all Even steps.
For Even steps:
Give restart=step2 in job card,
Code cond=(0,LE) or cond=(4096, GT) on all Odd steps.

The reason why we are using cond=(0,le) or (4096,GT) is
The cond parameter work's in such a way that if the the
condition is true it will bypass the step on which it is
coded.
here (0,le) or (4096,Gt) is always true so the steps will
bypass(won't execute).

@All: Do correct me if i'm wrong.

Is This Answer Correct ?    26 Yes 4 No

Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get exec..

Answer / vinodh

Your answer is correct!!

Is This Answer Correct ?    2 Yes 1 No

Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get exec..

Answer / muttaiah

Thanks much vinodh, The person's who mentioned as "No" can
you people give an explanation why is it so?
Because i want to know whether what i told is correct or
not.
From my perspective whatever i told is 100% damn correct.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

what is a steplib

4 Answers   CGI,


which utility is used to sort a file in jcl?

0 Answers   IBM,


how to edit a tape dataset ? asked in wipro

1 Answers   Wipro,


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

0 Answers  


A job has 90 steps i want to execute only step7 and step15

3 Answers   Cognizant,


I have a job which is a long-running one. Processes millions of records. Due to some run-time problem (not a problem due to the job/data) the job abends.What needs to be done to make the job complete successfully.

4 Answers   TCS,


i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to another gdg which have version 1 or to the base gdg itself can anyone give me the code pls ?

4 Answers   IBM,


how you will define a temporary dataset in jcl?

1 Answers   IBM,


how to code instream data in procedure?

3 Answers  


We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?

2 Answers   CTS, IBM,


i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?

1 Answers   Patni, Syntel,


I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.

0 Answers  


Categories