As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Tips:Using ?? in the INPUT Statement

From sasCommunity
Revision as of 09:57, 28 April 2017 by Paulkaefer (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When reading numeric data that may contain invalid values, the (??) can be used to not only suppress the error messages in the LOG, but to also reset the _ERROR_ variable to zero. When there are lots of invalid values, this allows the data set to still be created without producing lots of error messages in the log.

 data base;
 input age ?? name $;
 15   Fred
 14   Sally
 x    John

Submitted by Art Carpenter. Contact me at my Discussion Page.