I am splitting a file into several files based on some conditions using outfil. I also want to get the records which does not match my critieria.
if my sortin file contains,
File 1 should contain ABC
File 2 should contain 123
File 3 should contain A12 and 12B.
Since I am splitting my input file to 58 files + the default file. Its very difficult for me to write the include condition for the default file. Can you please let me know how to set the default file.
You can use DFSORT's Save Parm on OUTFIL. SAVE Specifies that OUTFIL input records not included by STARTREC, ENDREC, SAMPLE, INCLUDE or OMIT for any other OUTFIL group are to be included in the data sets for this OUTFIL group. SAVE operates in a global fashion over all of the other OUTFIL statements for which SAVE is not specified, enabling you to keep any OUTFIL input records that would not be kept otherwise. SAVE will include the same records for each group for which it is specified.