syncsort stop after nn records written to sortout



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

syncsort stop after nn records written to sortout

Postby nmartens » Fri Jun 28, 2013 11:31 pm

Is there a way for syncsort to stop after nn records are written to a sort out file when using an include/omit statement?


I want to sample some very large files and would like to stop after I get something like 10 examples.
I've looked at filesz and stopaft, but they don't seem to limit the way I would like
nmartens
 
Posts: 2
Joined: Fri Jun 28, 2013 11:28 pm
Has thanked: 0 time
Been thanked: 0 time

Re: syncsort stop after nn records written to sortout

Postby BillyBoyo » Sat Jun 29, 2013 2:45 am

Have a look at STARTREC, ENDREC and SAMPLE in your documentation.

ENDREC will do what you want, but the others may be useful to you.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: syncsort stop after nn records written to sortout

Postby nmartens » Sun Jun 30, 2013 1:03 am

Thank you. That looks like an excellent solution for me.
nmartens
 
Posts: 2
Joined: Fri Jun 28, 2013 11:28 pm
Has thanked: 0 time
Been thanked: 0 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post