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


i have 10 steps in jcl program but i have to exicute only
2,4,6,8th and 10th ?how it's possible?

Answers were Sorted based on User's Feedback



i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / amarnath reddy

Hi,

It is possible to execute selected steps. Use IEBEDIT
utility we can execute selected steps.

Ex: //xcon39ac dob (p54I9k),'amarnath',class=x,....
//JS05 exec pgm=IEBEDIT
//.
.
.
//SYSIN DD *
EDIT TYPE=INCLUDE,
STEPNAME=(STEP2,STEP4,STEP6,STEP8,STPE10)
/*
//

Is This Answer Correct ?    35 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / suputhru

MR Amarnath ReddY IS RIGHT.


Use IEBEDIT utility

NOTE: For not execution of steps use: EXCLUDE

Is This Answer Correct ?    5 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / raghavendra

Use Restart=step2 command in job card, then use COND=(0.LE) in steps 3,5,7,9 to skip (this cond parameter will the skip the steps only if previous steps ended with CC=0)

//Jobid job (t,aa,sys),'acct',class= , msgclass= ,region=0M,restart = step2
//*
//step1 exec
//step2 exec pgm=xxx
//step3 exec pgm=xxx,cond=(0,le)
//step4 exec
//step5 exec pgm=xxx,cond=(0,le)
//step6 exec
//step7 exec pgm=xxx,cond=(0,le)
//step8 exec
//step9 exec pgm=xxx,cond=(0,le)
//step10 exec

Is This Answer Correct ?    4 Yes 1 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / druks

Does the job have instream JCL or a instream proc or are the job steps in a proc (in a proclib) with a execution JCL

Is This Answer Correct ?    0 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / harshil gandhi (trainee at cog

i have 10 steps in jcl program but i have to exicute only 
2,4,6,8th and 10th ?how it's possible?
yes off course its possible..

       step1;
xx     step2;
       step3;
xx     step4;
       step5;
xx     step6;
       step7;
xx     step8;

explanation= use xx on the left side of the step or line in the command... and write (sub nx;) in the command...then it will execute only the excluded lines...thank you for reading... 

Is This Answer Correct ?    0 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / pavan

If we can edit the JCL then add a COND to the steps which you don't want to execute so that you can skip those.

Is This Answer Correct ?    5 Yes 6 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / sivaramakrishna

yes we can execute the above statements using cond
condition.

Is This Answer Correct ?    0 Yes 1 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / druks

It , depends on you having the JCL in a proc or are running it instream (simpler option) , you can delete the steps you do not require and run job'
Proc : in the EXEC JCL
Job statement put a RESTART Parm ,
in the EXEC JCL .
//stepa exec procname,cond=(1111,ne,stepxxx),cond=(1111,ne,stepxx1)
stepxxx ,stepxx1 step you want to exclude

Is This Answer Correct ?    0 Yes 5 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / naveen

yes its possible comment the 1,3,5,7,9 steps

Is This Answer Correct ?    3 Yes 10 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / mahesh

I think its not possible because , always first step need
to execute, then based on the CC of the first step,
we can specify COND whether to SKIP or Process a Step in
JCl.

Note : You cannot use Restart Parameter in the above
cases. it is used only when the Job is Abended.

Is This Answer Correct ?    1 Yes 14 No

Post New Answer

More JCL Interview Questions

A. Job Abended in STEP03. Now run job again to execute STEP03, STEP04 (STEP01,STEP02 should not execute again)

3 Answers   Cap Gemini, CSC, Xchanging,


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

1 Answers   Tesco,


can we copy a file from fixed block to variable block and vice versa ....asap

1 Answers  


can anyone explain me about sort in jcl with inrec and outrec ?

2 Answers   HCL,


What does IEBGENER do?

10 Answers   BirlaSoft,


How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.

3 Answers   IBM,


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above

1 Answers  


TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?

5 Answers   CTS,


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

0 Answers  


What is the syntax of JCL statement?

0 Answers  


I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter

8 Answers  


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

13 Answers   IBM,


Categories