Page 1 of 1

syncsort stop after nn records written to sortout

PostPosted: Fri Jun 28, 2013 11:31 pm
by nmartens
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

Re: syncsort stop after nn records written to sortout

PostPosted: Sat Jun 29, 2013 2:45 am
by BillyBoyo
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.

Re: syncsort stop after nn records written to sortout

PostPosted: Sun Jun 30, 2013 1:03 am
by nmartens
Thank you. That looks like an excellent solution for me.