Question:
suppose there are 5000 records ina flat file. how can we read files 2000 to 3000 using sort?
Answer:
Code:
OPTION COPY, SKIPREC=1999, STOPAFT=1000 Source: CoolInterview.com
Answered by: Varis Abdul | Date: 5/6/2016
| Contact Varis Abdul
//SYSIN DD * SORT FIELDS COPY OUTFIL FILES=1,STARTREC=2000,ENDREC=3000 END /* Source: CoolInterview.com
Answered by: sowjanya | Date: 6/6/2016
| Contact sowjanya
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|