ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> MainFrame >> IBM MainFrame >> JCL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions (851)
 JCL interview questions  JCL Interview Questions (700)
 CICS interview questions  CICS Interview Questions (448)
 DB2 interview questions  DB2 Interview Questions (668)
 IMS interview questions  IMS Interview Questions (80)
 IDMS interview questions  IDMS Interview Questions (6)
 Natural interview questions  Natural Interview Questions (41)
 ADABAS interview questions  ADABAS Interview Questions (8)
 REXX interview questions  REXX Interview Questions (21)
 Assembler interview questions  Assembler Interview Questions (29)
 CLIST interview questions  CLIST Interview Questions (1)
 QMF interview questions  QMF Interview Questions (4)
 MVS interview questions  MVS Interview Questions (11)
 OS390 interview questions  OS390 Interview Questions (9)
 OS 2 interview questions  OS 2 Interview Questions (0)
 VSAM interview questions  VSAM Interview Questions (177)
 QSAM interview questions  QSAM Interview Questions (3)
 Sysplex interview questions  Sysplex Interview Questions (5)
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions (128)
Question
How do you restart a step in JCL?
 Question Submitted By :: JCL
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
restart = jobstepname.procstepname
eg :jcl
if we need to restart from step2 in the proc...

//job1 job
restart=s1.step2
//s1 exec proc1
....

proc:
//proc1 proc
//step1 exec=...
//step2 exec=...
//step3 exec=...
 
Is This Answer Correct ?    73 Yes 17 No
Sv
 
Answer
# 2
Use RESTART=step name. 
Is This Answer Correct ?    66 Yes 15 No
Guest
 
 
 
Answer
# 3
//JOBNAME JOB ACCT,RESTART=PROCA.STEP2
//PROCA EXEC PROCA

PROCA:

//PROCA PROC

//STEP1 EXEC ...
//STEP2 EXEC ...
//STEP3 EXEC ...

The above program would restart the job from STEP2.
 
Is This Answer Correct ?    41 Yes 2 No
Izwarya
 
Answer
# 4
Suppose there are 10 steps in a jcl,i need to execute form
the step5 to step10(need not execute from step1 to step4)
in that case i suppose to use restart.

ex:
//JOBNAME JOB ACCT,RESTART=PROCA.STEP5

//PROCA EXEC PROCA

PROCA:

//PROCA PROC

//STEP1 EXEC ...
//STEP2 EXEC ...
//STEP3 EXEC ...
//STEP4 EXEC ...
//STEP5 EXEC ...
//STEP6 EXEC ...
//STEP7 EXEC ...
//STEP8 EXEC ...
//STEP9 EXEC ...
//STEP10 EXEC ...
 
Is This Answer Correct ?    33 Yes 6 No
Santosh
 
Answer
# 5
Use RESTART=step name.

for procs:
restart = jclstepname.procstepname
jclstepname:name of the jcl step which invoke the proc.
Procstepname : the prostep which you want to restart.
eg :jcl
if we need to restart from step2 in the proc...

//job1 job restart=s1.step2
//s1 exec proc1
....

proc:
//proc1 proc
//step1 exec=...
//step2 exec=... -----Here we are going to execute step2
//step3 exec=...

--- Hi SV, you given a awesome answer. keep it up.
-Sk.
 
Is This Answer Correct ?    22 Yes 2 No
Suputhru
 
Answer
# 6
Restart = Procstep.stepname 
Is This Answer Correct ?    29 Yes 12 No
Manas Mohapatra Uradha
 
Answer
# 7
Without Procs.
Use RESTART=step name.

For procs:
restart = jclstepname.procstepname
jclstepname:name of the jcl step which invoke the proc.
Procstepname : the prostep which you want to restart.
eg :jcl
if we need to restart from step2 in the proc...

//job1 job restart=s1.step2
//s1 exec proc1
....

proc:
//proc1 proc
//step1 exec=...
//step2 exec=... -----Here we are going to execute
step2
//step3 exec=...
 
Is This Answer Correct ?    2 Yes 0 No
Rammurthy
 
Answer
# 8
RESTART=TRANSFORM.STEP10 
Is This Answer Correct ?    2 Yes 1 No
Xxx
 
Answer
# 9
There are much ways to restart a program.

RESTART= ({* } [,checkid] )
({stepname } )
({stepname.procstepname} )

1)If the job got failed in JES2 system.this will restart the program from the beginning.

//SORTVBFL JOB SORTVBFL,(SORTVBFL),CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID
Restart=Y

2)If you want to Restart a particular step in JCL.
just use RESTART=STEPNAME(i.e Step040)

3)if you want to restart a particular step in proc
Use RESTART=procstepname.STEPNAME

*****************JCL*************************************
//SORTVBFL JOB SORTVBFL,(SORTVBFL),CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID
//JCLLIB JCLLIB ORDER=(AAAA.BBBB.CCCC)
//JCLPROC EXEC JCLPROC
.
*****************JCL*************************************
.
****************PROC*(AAAA.BBBB.CCCC)***********************

//JCLPROC PROC

//STEP10 EXEC PGM=iefbr14
//.....
//.....
//STEP20 EXEC PGM=
//.....
//.....


if you want to restart at step020 of proc

Code RESTART=JCLPROC.Step020 on the JCL

4)//WORK JOB ,PORTER,RESTART=(*,CKPT2)
//SYSCHK DD DSNAME=CHKPT,UNIT=3330,DISP=OLD

checkid :-

Specifies the name of the checkpoint at which the system is to restart execution. This checkpoint must be in the job step specified in the first subparameter.
Omit checkid to request restart at the beginning of the specified job step.

When the name contains special characters, enclose it in apostrophes. Code each apostrophe that is part of the name as two consecutive apostrophes. For example, code CHPT'1 as 'CHPT''1'.

The JOB statement indicates that the system is to restart execution at checkpoint CKPT2 in the first job step. The SYSCHK DD statement defines the data set on which the system wrote checkpoint CKPT2.
 
Is This Answer Correct ?    1 Yes 0 No
Manikandesvaran
 
Answer
# 10
There are 3 ways to achieve the above task.
1) Using restart & Cond:
Code restart=step15,cond=(0,le)
2) using restart & Null stmt
restart=step15, Code a null stmt(//) after step15.
3) Using Iebedit
//jobcard
//stepname exec pgm=iebedit
//sysut1 dd dsn=actual pds/ps that has the jcl
//sysut2 dd sysout=(*,intrdr)
//sysin dd *
edit type=include,stepname=step15
/*

Using option 1 & 2 will require the jcl to be copied to ur
personal pds and edit the jcl and pass it on to Operation
team to restart the job with the override pds

using option3 we can directly send this jcl to run without
editing the actual jcl
best way would be create a iebedit jcl in ur program
whenever the job needs to run for particular steps change
the iebedit jcl and send it to the team who will run the job
 
Is This Answer Correct ?    0 Yes 0 No
Rajani Mazumder
 

 
 
 
Other JCL Interview Questions
 
  Question Asked @ Answers
 
How to execute a set of JCL statements from a COBOL program ?   6
My JCL have five steps & I created new versions of GDG in first step through fourth step & fifth step I was refered Step one GDG version. My JCL got abend at 4th step and how I can restart my JCL Please let me know the answers. //STEP1 EXEC GDG1(+1) DISP=(NEW) //STEP2 EXEC GDG1(+2) DISP=(NEW) //STEP3 EXEC GDG1(+3) DISP=(NEW) //STEP4 EXEC GDG1(+4) DISP=(NEW) //STEP5 EXEC GDG1(+1) DISP=(OLD) HCL 11
1) max no of steps with jcl job can execute 2) how many extentions r possible in sequencial files with job 3) what is set parameter will do 4)how to get syntax errors without sub 5) what is differ between error and abend 6) hw mvs knows who submitted the job and whoom it has to forward 7) what are the positinal parameters of data descripter L&T 1
wht happens if blksize = 0 and lrec = 0 ? TCS 1
i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0   3
how to edit a tape dataset ? asked in wipro Wipro 1
What is a Generation Data Group (GDG)?   1
If a JOBSTEP abends, AND without using COND also, all the subsequent steps execute, then what is the use of using EVEN ? Why do we use EVEN when without it also all the JOBSTEPs execute ? IBM 2
What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?   4
I have a input file. Data like: ABCDEFGH.... i want out put file like AB BC CD DE....How can do this?? UST 7
WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE) ADP 8
I had 100 steps in jcl i want to execute first 10 steps only? IBM 5
 
For more JCL Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com