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 to see the COMP3 value(packd decimal)
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter
how to increase the space of a dataset in instream procedure.
which parameter is used to check the syntax of a jcl without executing it?
Name a few IBM utility programs, and explain its function.
what happens if job falls in loop ? how to resolve it ?
how to split a file
What are the keywords associated with DCB? How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
IN DFSORT sum fields=none is usec to remove duplicates.how to write the duplicates in another dataset?
How to get cursor position from system in CICS environment ?