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?

Answer Posted / pradip

I propose a syntax below to meet the requirement,
excute first STEP008 then excute STEP004
//JOBCARD
//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=path of your JCL,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP008)
/*
//*
//STEP002 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=path of your JCL,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP004)
/*

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

913


How can the submitting users racf authority be overridden in a job stream?

734


Explain how can a stopped job be started again?

628


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1955


Explain the function of dd name parameter with a 2 part structure; audit.report?

884






what is use of dsn parameter in dd statement?

658


What are the jcl procedures?

635


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

776


Explain the function of the dd dcb keyword?

686


if the submitter of a job wants to inform another user about the job completion, how can it be done?

740


How to override loadlib?

1407


Explain the function of //cntl statement?

641


Which statement is used to identify the private libraries in job?

668


what are the various stages of job processing?

727


How can a fb file convert to vb file using sort program?

795