First the sytax is not categorically wrong, it won't work the way it is written. However, if I take inference form it -- you want to skip first 2 records then stop at 25, start again and skip next 2 records and stop-after=01? What does that mean?
With STOPAFT, SORT(DFSort) actually stops reading the records when the STOPAFT count is satisfied, so, for your example, only 27 records will be read, whereas with ENDREC, (DF)SORT reads all of the records. So STOPAFT is actually more efficient but I doubt if we can use them the way you show.
Joined: 24 Jul 2011 Posts: 651 Location: Down on the pig farm
Posted: Tue Aug 14, 2012 1:32 pm Post subject:
Venky, it would help if you specify WHICH sort program you use - DFSORT or SYNCSORT or some other. Do NOT look at the PGM=sortprogramname as this may be an alias - look at the messages produced by the sort program: a) they will mention the program name and b) ICE messages indicate DFSORT and WER messages indicate SYNCSORT. _________________ Regards
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum