>>> When using SORT (either DFSORT or SYNCSORT) to select a relatively > small sample of records by (a) particular key value(s) from a *very > large* sequential file,
Peter, You can use STOPAFT parm to stop reading the input once you get to a threshold value. For example if you have file with 300 million records and if you are only interested in only 100 records for the key 'ABC', then you can use the following //SYSIN DD * OPTION COPY,STOPAFT=100 INCLUDE COND=(1,3,CH,EQ,C'ABC') /* Thanks, Kolusu DFSORT Development IBM Corporation ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
