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 four steps in jcl they are STEP1,STEP2,STEP3 and STEP4.
Can it possible to run the reverse order like step4 first
then step3,step2,step1?

Answers were Sorted based on User's Feedback



I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse o..

Answer / muttaiah

JCL processes steps sequentially i mean to say we have ways
to skip steps but we don't have a way to run steps in
reverse or random way. EX; i have a job with steps 1, 2, 3.
Executing steps 3, 1, 2 is not at all possible.

If you want to do so then you have to write a new JCL with
IEBEDIT utility. Here is the JCL.

//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
TYPE=INCLUDE,STEPS=(STEP4,STEP3,STEP2,STEP1)
/*
//

Here file1 can either be PDS/PS that holds the actual JCL.
Type=Include will copy the steps specified in the sequence
as per STEPS parm

In real time there won't be any scenario as such..If any
interviewer asks this question then blast him with this
answer. Tell him not to waste your time by such questions

Is This Answer Correct ?    44 Yes 2 No

I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse o..

Answer / atul

This solution is not working.

Is This Answer Correct ?    1 Yes 0 No

I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse o..

Answer / sitharam

Just correction on above answers, It will work
//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE = INCLUDE,STEPNAME=(STEP4,STEP3,STEP2,STEP1)
/*

Is This Answer Correct ?    1 Yes 0 No

I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse o..

Answer / premadevi

//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
TYPE=EDIT,INCLUDE=(STEP4,STEP3,STEP2,STEP1)
/*
//

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

CAN ANYONE TELL ME WHAT IS "JOB-CARD"

4 Answers   Syntel,


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


What are isolation levels? Where do we need to specify them in compiling JCL?

3 Answers  


What is the meaning of keyword in JCL? What is its opposite?

1 Answers  


What is GDG and what is the maximum limit of versions that can be created?

9 Answers   Convergys,


Suppose your program is reading a Sequential Vsam file. The file contains 10 records. How will you code the JCL to read only 2nd, 5th, 7th,and 10th record?

1 Answers   Thomson,


what is the cond=even only

4 Answers   EDS,


What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?

1 Answers  


What are the differences between JES2 & JES3 ?

4 Answers  


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

0 Answers  


What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?

2 Answers  


using cursor how can you fetch more than one record into a variable

3 Answers   Syntel,


Categories