If we have 100 job steps in JCL and we want to excute steps
only starting from 43 to 50, then how it can be coded in JCL/
Answer Posted / avinashn17
use the following,
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXX(MEMBER),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP43-STEP50)
/*
only steps 43-50 would be included and executed.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain the job statement in jcl?
Explain the jcl exec statement?
Explain how can return codes be tested before execution of a job step?
Is condition checking possible in jcl?
Is there any command to check wether the ps file is in sorted order?
what is the purpose of coding class parameter in job statement?
can any one plzzzzzz tell the jcl code for creating ps using idcams
what is the purpose of coding notify parameter in job statement?
How do you overcome this limitation ?
What are the parameters that are used in creating a gdg?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat