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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 ?    1 Yes 1 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 ?    1 Yes 1 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 1 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 ?    2 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 ?    3 Yes 3 No
Shailendra
 
  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
# 9
In JCL one key word parametor is there that is DPRTY.It can 
be done by using DPRTY(Value1,Value2) in the 
job step,
hear Value1 allwawys 15
DPRTY=(15*15)=255
yOU CAN INCRESE Value2 value based on your requirment,You 
can execute up to 255 steps in your JOB.


eg.,
//MANOHAR JOB 'TECHMAHINDRA'
//**
//STEP01 EXEC PGM=A ,DPRTY=(15*6)
//STEP02 EXEC PGM=A ,DPRTY=(15*5)
//STEP03 EXEC PGM=A ,DPRTY=(15*3)
//STEP04 EXEC PGM=A ,DPRTY=(15*4)
//STEP05 EXEC PGM=A ,DPRTY=(15*2)
//STEP06 EXEC PGM=A ,DPRTY=(15*1)
//**
//
    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 ?    3 Yes 1 No
Manohar (techmahindra)
 

 
 
 
Other JCL Interview Questions
 
  Question Asked @ Answers
 
How many parameters are there to a DISP statement and what are their uses ?  3
How do you check the syntax of a JCL without running it?  14
What is maximum length of block size? Kanbay3
Can a job have only steplib and no joblib ?  6
//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES IBM3
What is the max blocksize for a Tape file?  2
what is the purpose of SYSOUT parameter in the DD statement?  1
Write a jcl to execute a job by 7 a.m on Jan 20,1986 ? Maples3
What is the difference between static call & Dynamic call ?  2
Can we create VSAM file by using IEBGENER? Principal-Finance2
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
How do you restart a PROC from a particular step?  3
I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know. Syntel1
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?  5
What is NOTCAT 2  1
what are the symbolic parameters? why do we use symbolic parameters ? Xansa2
How do you override a specific DDNAME/SYSIN in PROC from a JCL?  5
How we can code in a jcl to execute a job in a particular time and date without using any job shudular?. (Eg) i want to execute a particular job at 8 am on 01/01/2010. Target2
How to DEBUG a JCL? Satyam6
What you mean by skeleton JCl?  2
 
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