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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / satish
//sysin dd *
option copy
oufil fnames=(ddname),build=(2c'0',1,100)
/*
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you override a specific DDNAME/SYSIN in PROC from a JCL?
Name the system library from which modules are retrieved at execution
How to execute only th 15th step of JCL consisting of 50 steps?
How to skip first step of a job? Can we use COND on the first step?
which are the parameters mandatory in job card ?
What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?
What is the difference b/w the CLASS,TIME,PRTY in jcl job card.
How To get the last record in VSAM file in cluster? and How can u get the ksds file records into ur cobol program ? Pls tell me about these two questions.
What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?
What is the function of dd disp parameter?
how will be submit 1 jcl by other jcl? means that how 'll submit one job by other job??
Is their any limit for data sets?