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 |
Explain about File Tailoring
what is the use of temporary files?
What does the one advantange of using IEBUPDTE?????
At what stage, operator can change the class and priority of a submitted job?
When space is allocated for an output dataset, what units can be used?
Write a JCL by using the below requirement: File1 =1, File2 =11 and output needs to come as File3 =111?
Can you delete the GDG base without deleting GDG generations ?
Hi, I have a requirement File A : I have 6 records out of which 4 are same. File B: I have 8 records out of 6 records are same. The 4 records in FILEA and 6 records in FILE B are same. If we substract we will get two records, I need these two records in output file This is because to remove the duplicates from the database. Through easytrieve we can compare but for that there should not duplicates, but in my file I have duplicates. Thanks in advance!!
How to view the hexa decimal value thru file aid if copy book is not present for that particular data
what is the purpose of SYSOUT parameter in the DD statement?
wht is the d/f between positional parameter n keyword parameter ?
can we write a proc with in a proc