Page 1 of 1

Capture rest of the records using Syncort.

Posted: Fri Oct 03, 2014 8:39 pm
by Bunny Maheshwari
Hi,

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

Code: Select all

//SYSIN    DD *                      
 SORT FIELDS=COPY                    
 INCLUDE COND=(700,7,CH,NE,C'#######')
/*                                   
The above gives me 500 records in the output file. But other left records from input are not captured anywhere, how to capture the remaining records into a separate file in a single step?

Please help.

Re: Capture rest of the records using Syncort.

Posted: Fri Oct 03, 2014 9:09 pm
by William Collins

Code: Select all

  OPTION COPY 
  OUTFIL INCLUDE=(your condition),FILES=1
  OUTFIL SAVE
Try something like that You should get your selected records on a DD called SORTOF1 and the rest on SORTOUT.

Re: Capture rest of the records using Syncort.

Posted: Tue Nov 18, 2014 2:49 pm
by Bunny Maheshwari
Thanks William this worked.

Thanks.