Possible to stop SORT before EOF?
Posted: Mon Feb 14, 2011 8:38 pm
I have as i/p a few million records.
- The i/p file is sorted on a key and is QSAM
- I know what the key is
- I want to get only records of a certain key and sort on a date.
So my question:
- Is there a way to tell sort to STOP reading the i/p after reaching a "key" that is > than the key i am after?
I don't see any, i found the STOPAFT but i don't know how many records there will be for a particular "key".
Thx,
John
- The i/p file is sorted on a key and is QSAM
- I know what the key is
- I want to get only records of a certain key and sort on a date.
So my question:
- Is there a way to tell sort to STOP reading the i/p after reaching a "key" that is > than the key i am after?
I don't see any, i found the STOPAFT but i don't know how many records there will be for a particular "key".
Thx,
John