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.
Answer Posted / mahesh
Hi,
Please find the JCL below
//JOBCARD
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT-FILE,DISP=SHR(100 LENGHT)
//SORTOUT DD DSN=OUTPUT-FILE,DISP=NEW,DCB=(LRECL=102,..)
//.....
//.....
//SYSIN DD *
SORT FIELDS=COPY,
OUTREC BUILD=(1:C'00',3:1,100)
/*
Thanks & Regards,
Mahesh.
| Is This Answer Correct ? | 29 Yes | 0 No |
Post New Answer View All Answers
How can return codes be tested before execution of a job step?
How is a type of file defined in the jcl that executes the cobol program?
Can we call instream to catalog and catalog to instream?
Explain the purpose of dd dummy statement?
What is the function of //cntl statement?
what is the purpose of coding class parameter in job statement?
what is use of space parameter in dd statement?
what operation is performed by job statement?
What parameter directs the output of the job log dataset?
How do you create a temporary dataset?
which utility is used a dummy utility?
How does the jcl specify the job to os?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
Explain the hierarchy levels in jcl?
what is use of dsn parameter in dd statement?