DATA Step, Macro, Functions and more

SAS Sample: Sample 41880 (reading in a directory)

Reply
New User
Posts: 1

SAS Sample: Sample 41880 (reading in a directory)

Hi,

I was looking at a sample SAS code: Sample 41880. It's url is:
http://support.sas.com/kb/41/880.html

In the full code tab, there is a line that looks like this (close to the top of the program):
if input(substr(line,1,10), ?? mmddyy10.) = . then delete;

Can someone tell me what the two question marks do?

Thanks. No worries, it's in the documentation. It suppresses messages for invalid data in case anyone is interested.


Message was edited by: toucan
Super Contributor
Super Contributor
Posts: 3,174

Re: SAS Sample: Sample 41880 (reading in a directory)

You will find an explanation in the SAS Language Dictionary discussion on the INPUT statement processing -- it has to do with how SAS reacts to an invalid-data or missing-data condition for the particular INFORMAT being used.

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic / post:

input informat question mark site:sas.com
Ask a Question
Discussion stats
  • 1 reply
  • 121 views
  • 0 likes
  • 2 in conversation