In reply to ma.

Assuming that you end up with a SAS program that you're customizing, using DATA step and INFILE, then yes. You can add an IF statement that will test for a condition, and only those records that meet the condition will be kept. Your IF condition can scan the _INFILE_ (current input buffer) or it can test condition of variables you INPUT/assign.