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


In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps
only,can any one answer me please?

Answers were Sorted based on User's Feedback



In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps only,can any one answer me please?..

Answer / muthu

Hi All,

For this question we have to consider the following
scenario.

Step 1 - it has to be executed at any cost
Step 2 - it has to be executed at any cost
Step 3 - it should not be executed if the 1st and 2nd steps
executed successfully.
Step 4 - it should not be executed if the 1st and 2nd steps
executed successfully.
Step 5 - it has to be executed at any cost

Step 1 - No need to code any cond codes
Step 2 - COND = (0, NE) (This execs if step1s rc is 0)
Step 3 - COND = (0, EQ) (This step get skip if step 2's rc
is 0)
Step 4 - COND = (0, EQ,step2) (This step get skip if step
2's rc is 0)
Step 5 - COND = (0, NE,step2) (This step execs if step2's
rc is 0).

This is my assumption correct me if am wrong.

Is This Answer Correct ?    23 Yes 1 No

In JCL I have 5 steps,I need to execute 1st,2nd and 5th steps only,can any one answer me please?..

Answer / mahesh

//mat021ex job notify=&sysuid,class=a,msgclass=a,
cond=(step2,00,eq)
//step1 exec
//step2 exec condition satisfied remaining steps areskipped
//step3 exec
//step4 exec
//step5 exec cond=even

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More JCL Interview Questions

Explain in DD statement what is the use of DCB parameter?

0 Answers  


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

2 Answers  


A job has 150 steps i want to execute only 57th step

3 Answers   Cognizant,


Name a few IBM utility programs, and explain its function.

0 Answers  


Is there any command to check wether the ps file is in sorted order?

0 Answers   IBM,


what is the purpose of coding class parameter in job statement?

0 Answers   IBM,


Explain about Specifying compiler options in the PROCESS (CBL) statement

1 Answers  


Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00

2 Answers  


what are JCLLIB and STEPLIB in JCL?

0 Answers  


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  


Is there any command to check wether the ps file is in sorted order?

4 Answers  


How many types of parameters are used in JCL and what are mandatory parameters of JOB statement.

13 Answers   IBM,


Categories