DATA Step, Macro, Functions and more

ERRORABEND vs INVALID DATA LINES

Reply
Frequent Contributor
Posts: 89

ERRORABEND vs INVALID DATA LINES

Hi folks,
on mainframe my job should end with CC > 0 when INVALID DATA LINES are detected!!
However, I can not found any (system) option to do this??
http://support.sas.com/onlinedoc/913/getDoc/nl/lrdict.hlp/a000279092.htm

ERRORABNED does NOT affect invalid data lines

Any suggestions?

Regards,
Herman
Super Contributor
Super Contributor
Posts: 3,174

Re: ERRORABEND vs INVALID DATA LINES

You will need to check the SAS DATA step (automatic variable) _ERROR_ -- if it has a non-zero condition then a prior INPUT (function or statement) detected an invalid data condition, depending of course on your INFORMAT being used.

Then, it is your decision how to proceed and decide to use the ABORT statement with the appropriate ERRORABEND/NOERRORABEND system option set -- possibly during the DATA step execution but also possibly at End-of-File condition maybe (after all input data has been read up).

Scott Barry
SBBWorks, Inc.

Recommended Google advance search argument this topic/post:

input data informat _error_ site:sas.com
Ask a Question
Discussion stats
  • 1 reply
  • 114 views
  • 0 likes
  • 2 in conversation