ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  JCL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
In my job I have 6 steps. Step01,02,03...step06.
after executing step02 i want to skip step03 and want to 
execute step04. and once step04 is done then I want to go 
back and execute step03. once step03 is completed I want 
execute step05, 06 and so on... can any one tell me how do 
i do that???
 Question Submitted By :: Minarul
I also faced this Question!!     Rank Answer Posted By  
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 1
You can do that using IEBEDIT. Pls read JCL manual for more 
details. I am citing an example below.

The member XXXXX in SYSUT1 contains the job and steps to be 
executed.

//STEP0001 EXEC 
PGM=IEBEDIT                                    
//SYSPRINT DD 
SYSOUT=*                                         
//SYSOUT   DD 
SYSOUT=*                                         
//SYSUT1   DD DSN=ANIL.SANA(XXXXX),DISP=SHR         
//SYSUT2   DD SYSOUT=
(*,INTRDR)                                
//SYSIN    DD 
*                                                
  EDIT START=ANILPROC,TYPE=INCLUDE,STEPNAME=
(STEP2,STEP4,STEP3,STEP5......)
/*
 
Is This Answer Correct ?    0 Yes 0 No
Anil Sana
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 2
IT CAN BE DONE BY CONDITION STATEMENT
 
Is This Answer Correct ?    0 Yes 0 No
Nidhi Sharma
 
 
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 3
NO IT CANN'T BE DONE WITH CONDITION BUT I THINK FROM WHAT 
ANIL HAS WRITTEN MIGHT WORK.......

CORRECT ME IF I AM WRONG!!!!!!!!!!
 
Is This Answer Correct ?    0 Yes 0 No
Aaaaa
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 4
It can be done by using DPRTY(dispatching priority) in the 
job step,
eg., code dprty = (15*12) + 16 in step02
          dprty = (15*07) + 06 in step03
          dprty = (15*10) + 16 in step04
          dprty = (15*05) + 04 in step05
          dprty = (15*04) + 03 in step06.
by doing this according to there dispatching priority each 
step will be executed,
first it will execute step01,02,04,03,05,06
 
Is This Answer Correct ?    0 Yes 0 No
Nagaraj
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 5
we do use the code mentioned by the person who answered 
first but we don't include step3 and step4  at one go.in 
first step we include step 1 and 4 and then in the next 
step we include step3 but the coding we use is the same. 
for both steps....
 
Is This Answer Correct ?    0 Yes 0 No
Neha
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 6
See below the exact code for your requirement: Here TEST001 
contains your actual JCL to be executed

//Job Card
//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=INCLUDE,STEPNAME=(STEP01,STEP02,STEP04)
/*
//STEP002 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2   DD SYSOUT=(A,INTRDR)
//SYSIN    DD  *
 EDIT TYPE=INCLUDE,STEPNAME=(STEP03,STEP05,STEP06)
/*
 
Is This Answer Correct ?    0 Yes 0 No
Pradeep
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 7
we can make function of every step, and call them accordingly
 
Is This Answer Correct ?    0 Yes 0 No
Abc
 
  Re: In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
Answer
# 8
chang the step according to requirment 

//step1
//step2
//step4
//step3
//step5
 ....
..
.....
 
Is This Answer Correct ?    0 Yes 0 No
Shailendra
 

 
 
 
Other JCL Interview Questions
 
  Question Asked @ Answers
 
How do you designate a comment in JCL?  1
What is the max blocksize for a Tape file?  2
What is the difference between the JOBLIB and the STEPLIB statements?  2
If a field is declared as a comp-3 field and if we want to sort a dataset based on this field, then how will the sort card be??? e.g- if we want to sort by a field which is defined as a PIC X(5) then we will mention - sort fields=(1,5,ch,a). Likewise if a field is defined as PIC S9(10)COMP-3 then in this case how will the sort field be defined (because in this case a sign is also involved)???  5
How do you submit a JCL under CICS environment ? Wipro4
Can we delete the data using IEFBR14 , IEBGENER?? Kanbay4
What is COND=EVEN ?  4
How do you check the syntax of a JCL without running it?  12
with out sorting how to copy records from one file to another file using jcl.Mean I have one input file in which the record are like 1,6,5,4,2,3(for example) and i want to copy to output file from top to bottom(without sorting) like 3,2,4,5,6,1.so I want the JCL for this.cna any one can answers? TCS1
What is COND=ONLY ?  1
Why do you use a control card?  1
What is the difference between static call & Dynamic call ?  2
what do you mean By spooling? Expand SPOOL?  3
What is a Proc ? why do we go for a Proc ? What are the types of procs?Can we have nesting in Procs ? Xansa8
i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step? IBM2
Which is the most widely used batch performance monitor for DB2?  1
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? Convergys9
IN MY JCL I VE 8 STEPS I WANT TO EXCUTE STEP 8 FIRST THEN EXCUTE STEP 4 ,HOW WILL EXCUTE STEP 8 BEFORE STEP 4? IGT3
What is the difference between a symbolic and an override in executing a PROC?  1
what is the restart?hopw it is invoked?  1
 
For more JCL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com