I want to delete 50 records from a file that has 100,000 records. Can I achieve it using SORT if I give same file as input and output? Or, will there be any space abends from SORT side? Does sort allow several parameters to code in SYSIN card? What is the limit?
I am trying below sample SORT card but before attempting just need clarification.
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
I would suggest that you try it out anyway.
Looking at your code above, are the omit conditions linked or unique.
That is, do you want to omit on any condition stated, or does the record need to meet all of the criteria before being omitted.
I want to delete 50 records from a file that has 100,000 records. Can I achieve it using SORT if I give same file as input and output?
For a COPY or MERGE, the output file must not be the same as any of the input files. That being said, as Garry pointed out, your data sets are not named the same in your example, so this is a moot point.