Capture rest of the records using Syncort.

SyncSort's Sort Product, SyncTool for z/OS, SYNCINIT and SYNCLIST.
Post Reply
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 »

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: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Capture rest of the records using Syncort.

Post 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.
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 »

Thanks William this worked.

Thanks.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SyncSort, SyncTool, SyncGener.”