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


If there are five steps in a JCL i have to execute the 3rd
step, bypass the 4th step and execute the 5th step how do i
do this?

Answers were Sorted based on User's Feedback



If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / joshna

//jobname positional parms,keyword parms,.... Restart=step3
//..
//..
//..
//step3 exec=xxxx
//...
//step4 exec=yyyy,cond=(0,eq,step3)
//..
//step5 exec=zzzz

Is This Answer Correct ?    52 Yes 12 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / sreelatha

//jobname positional parms,keyword parms,.... Restart=step3
//..
//..
//..
//step3 exec=xxxx
//...
//step4 exec=yyyy,cond=(0,Le,step3)
//..
//step5 exec=zzzz

Restart =step 3 executes step3.Step 3 gives some return
code.In step 4,the test is passed as 0 is less than step
3.So step 4 is bypassed and is not executed. and the
program is responsible for issuing the return code that
was not even loaded in the main storage.
The result: no return code can exist
In the steps that follow any test of COND parameter tat
attempts to interrogate this non-existent return
code will be ignored . Step 5 will be e executed.

Is This Answer Correct ?    34 Yes 2 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / syntel

Sorry,my previous solution was wrong.Infact it is correct
if you don't want to skip step 4th step

The correct solution for this is
to use COND paramater.

Is This Answer Correct ?    19 Yes 1 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / pradeep

The below given code provides the exact solution,

//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP003,STEP005)
/*

Is This Answer Correct ?    17 Yes 4 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / rudolf

This jcl is the correct answer, this is used to run a batch
job in production environment.
*** if the JCL will run step3 and step5 condcode is 0
while step4 condcode is flush means it will not run.

//jobname jobcardxx
// xxxxx
// xxxxx
// xxxxx
//..
//..
//step3 exec pgm=xxx,cond=(4,lt)
//....
//....
//step4 exec pgm=xxx,cond=(0,le)
//....
//....
//step5 exec pgm=xxx,cond=(4,lt)
//....
//....


RUDOLF M. AQUINO
SYSTEM PROGRAMMER(MAINFRAME)
UNITED COCONUT PLANTERS BANK
MAKATI CITY

Is This Answer Correct ?    13 Yes 4 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / raj

//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP003,STEP005)
/*

Is This Answer Correct ?    7 Yes 3 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / sivakumar sekharannair

1)Give restart=step03 in job card
2)in step04 give cond=(0,le)
3)step05 no condition neeeded

sample jcl is given below



//AAUT001D JOB ,'TEST',MSGLEVEL=(1,1),CLASS=C,MSGCLASS=H,
// NOTIFY=&SYSUID,RESTART=STEP003

//STEP001 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

//STEP002 EXEC
PGM=AUT0EMP
//EMPLOY1 DD
DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*

//STEP003 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

//STEP004 EXEC PGM=AUT0EMP,COND=
(0,LE)
//EMPLOY1 DD
DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*

//STEP005 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*

Is This Answer Correct ?    5 Yes 3 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / rahul singh

//jobname jobcardxx
// xxxxx
// xxxxx
// xxxxx
//..
//..
//step3 exec pgm=xxx,cond=(0,gt)
//....
//....
//step4 exec pgm=xxx,cond=(0,le)
//....
//....
//step5 exec pgm=xxx,cond=(0,gt)
//....
//....

Is This Answer Correct ?    2 Yes 1 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / rajesh

We use the COND Parameter for By pass the 5th step &
RESTART=Step Name in the job Card.
// Jobname Job Acc.info,Programmer
name,..............,Restart=Step3
//Step4 EXEC PGM=Program Name,COND=(0,LE,Step3)
//Step5 EXEC PGM=Program Name
//

Is This Answer Correct ?    1 Yes 0 No

If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute t..

Answer / name

It depends on the situation. I recommend against using
IEBEDIT to alter the JCL. Use of IF ... THEN is more
perspicuous than use of the COND parm.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,


What is the function of the steplib dd statement?

0 Answers  


is there any way to execute more than one proc in the same exec statement at the same time..?

0 Answers  


What is the function of a dd statement?

0 Answers  


//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*

0 Answers  


What are s0c1, s0c4, s0c5, s0c7 and socb?

0 Answers  


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

5 Answers   CTS,


a dd statement has 2 types of parameters. Name them?

0 Answers  


List the different jcl statements that are not permitted in the procedures?

0 Answers  


i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?

4 Answers   DELL,


diff bw vsam and normal flat file?

2 Answers   CGI,


what is fixed length and variable length and difference between them

1 Answers   CGI, Wipro,


Categories