DROP (DR) function
The DROP function eliminates unwanted records from a data set while copying it. Use the IF, AND, and ORIF selection parameters to specify the records to be dropped. Specify the CEM parameter to copy empty members of a partitioned dataset. Use the IN, OUT, or DROP limiting parameters to stop DROP processing. After completing a DROP function, File-AID reports the number of dropped records on the SYSPRINT output.
Example 1:
Example 1 copies all of the input dataset records and drops any record that does not contain a valid 7-byte packed field beginning in location 4.
Example 2:
Example 2 copies the input dataset to the output dataset, and stops after dropping the first 200 records containing a valid packed field of any length, that begins in location 15, and has an arithmetic value equal to 1 or 2. For more information on packed data testing, see Packed Data.
Example 3:
To create an extract file, Example 3 copies the input dataset and drops any record that either contains the letter A or the letter B in location 1, or contains a packed data value less than 101 in location 19. Processing stops when 15 records are copied.