How can we execute only one step in a job
Answers were Sorted based on User's Feedback
Answer / radhakrishnan
1. restart the step in the jobcard
2. give a null // at the end of the step.
Thanks,
raddie
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / pavan kumar
give that steps name in the restart parameter on the job
card and after that step put //
| Is This Answer Correct ? | 1 Yes | 0 No |
as per Sravanthi's answer.. A null (/*) statement at the
end of this step can be given for running this step alone
but we have to give restart in job.
suresh,the second method that u have suggested its not
correct, coz if u have more than one step in the same job
then u have to code the same COND parameter for each step.
this will stop the execution of 2 step...
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / valmiki1980
This is a sample to restart only step02 and skip rest all,
please correct me if i am wrong.
--------------------------------------------------
//JOB CARD RESTART=STEP02
//STEP01
//STEP02
//chkstp02 IF STEP02.RC > 12 THEN
//STEP03
//STEP04
//STEP05
/*
// ENDIF
//
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sushanta
Use RESTART parameter and then use null for that step so
that no step gets executed after that.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sachin
Suresh Sir: I agree with your answer but if Condition is True means that particular step(2) will be bypassed however job execution will go to the next step(3). I am just fresher, so please correct me if i am wrong.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suresh
Hi,
Better we can give the true condition i.e COND=(0,LE) in
all the steps that we don't want to execute.
Please suggest if am wrong
| Is This Answer Correct ? | 0 Yes | 2 No |
what is the general use of PARM? Give an explanation about the system defined parameters that could be passed through this PARM like XREF,LIST,LET,APOST,RENT etc..
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
in a series of 10 steps, i need to run only 1,3,5,7 & 9th steps only. how do u code?
One dataset is creating in the step1 with LRECL of 133 and the same dataset is used in the next step in DISP=SHR mode, but while scanning the JCL the following error is thrwon. Please verify the below JCL $/SEPP030.PROVIDER DD DSN=Z1225BT.F5750PG9.F5910PRV.QC#A6868 //ERRORRPT DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, --ERRORRPT DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=&DISNCD,UNIT=&DELQ, -- DISP= (NEW,CATLG,DELETE),UNIT=DELQ, // SPACE=(TRK, (30,15),RLSE), // DCB=&DCB2 -- DCB= (PPG.METMODEL,BLKSIZE=0,LRECL=133,RECFM=FB) $/SEPP030.ERRORRPT DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT //SEPP040 EXEC PGM=FILEAID,COND= (0002,EQ,SEPP030) //SYSPRINT DD SYSOUT=* //SYSLIST DD SYSOUT=* //DD01 DD DSN=SYSCMN.PROD.CCLIB (F5910EP1),DISP=SHR $/SEPP040.DD01 DD DSN=Z1225BT.TEST.CCLIB (F5910EP1) E1 - DSS20791E - DATA SET 'Z1225BT.F5910EPP.ERRORRPT.AOUTPUT' HAS AN LRECL OF 133 COULD NOT BE OPENED BECAUSE THE CODED LRECL WAS 80. // DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, -- DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=SHR $/ DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT please find the error code in the above mentioned lines and please suggest me about the error and the solution for that.
what is DSN parameter and DISP parameter is used for?
if we compile the cobol+ db2 program now ofter 5 years we need to compile again?
Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..
How do you restart a step in JCL?
What is a COND parameter in JCL?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What is STEPLIB, JOBLIB? What is it used for?
Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?