i have 10,000 records in one input file.i want to sort 1 to
5000 records in one outputfile and remaining records sort in
another output file write the syntax for this?
Answers were Sorted based on User's Feedback
Answer / albert
SORT FIELDS=COPY
OUTFIL FILES=1,STOPAFT=5000
OUTFIL FILES=2,SKIPREC=5000
| Is This Answer Correct ? | 28 Yes | 8 No |
Answer / muttaiah
@Albert:
IF we are using Outfil, we won't use Skiprec & stopaft.
My Answer:
Step1:
sort fields=copy
outfil files=01,endrec=5000
outfil files=02,startrec=5001,endrec=10000
Step2:
Sort fields=(pos,leng,cha,a or d)
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / prakash
sort fields=copy
outfil files=1,endrec=5000
outfil files=2,start rec=5001,endrec=10000
| Is This Answer Correct ? | 4 Yes | 2 No |
When should DISP=MOD is used?
For how long a job can be executed continuously in a mainframe ?
I have two files each contains 10 records. I would like to copy both files into one output file but in alternate sequence. for e.g. first record from file1 then record 2 from file2.....
IN DFSORT sum fields=none is usec to remove duplicates.how to write the duplicates in another dataset?
i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
How to check empty file in jcl?
How does jcl act on a cobol code?
what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file
How can you trap abends in the JCL?
How does -818 sql error occur? Why does it happen and what can be done to overcome this error code?
Hi Guyz, My requirement is to empty out a PS file but not to delete. How would I do that. Is there any Utility. If any other way, plz answer. Thanks.
9 Answers iGate, Lehman Brothers,
which utility is used to update pds?