Page 1 of 1

Where are rest of records?

PostPosted: Tue Sep 30, 2008 4:38 pm
by ranga_subham
Hi,

I am using below INCLUDE condition on an input file with 223942 no. of records.

//SYSIN    DD *                     
 SORT FIELDS=COPY                   
 INCLUDE COND=(726,6,CH,NE,C'??????')
/*                                   


It gives me 289 records in the output file. How to capture the remaining records into a separate file?

Please help.

TIA.

Re: Where are rest of records?

PostPosted: Tue Sep 30, 2008 8:30 pm
by Alissa Margulies
Try this:
//SORT1  EXEC PGM=SORT                   
//SORTIN   DD DSN=input.file
//SORTOUT  DD DSN=output.file                           
//SORTOF01 DD DSN=remaining.records
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *                                     
  SORT FIELDS=COPY                                   
  OUTFIL FILES=OUT,INCLUDE=(726,6,CH,NE,C'??????')
  OUTFIL FILES=01,SAVE           
/*

Re: Where are rest of records?

PostPosted: Tue Sep 30, 2008 8:44 pm
by ranga_subham
Alissa, Thank you very much for speedy reply............ :D

You are excellent ! :idea:

Thanks once again.