Capture rest of the records using Syncort.

SyncSort's Sort Product, SyncTool for z/OS, SYNCINIT and SYNCLIST.
Previous topicNext topic

Topic Author
Bunny Maheshwari
New Member
Posts: 5
Joined: Fri May 02, 2014 3:29 pm

Capture rest of the records using Syncort.

Post by Bunny Maheshwari » Fri Oct 03, 2014 8:39 pm

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.




William Collins
Global Moderator
Global Moderator
Posts: 499
Joined: Sun Aug 25, 2013 7:24 pm

Re: Capture rest of the records using Syncort.

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

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.




Topic Author
Bunny Maheshwari
New Member
Posts: 5
Joined: Fri May 02, 2014 3:29 pm

Re: Capture rest of the records using Syncort.

Post by Bunny Maheshwari » Tue Nov 18, 2014 2:49 pm

Thanks William this worked.

Thanks.



Previous topicNext topic

Return to “SyncSort, SyncTool, SyncGener.”