DATA Step, Macro, Functions and more

SAS Sample: Sample 41880 (reading in a directory)

New User
Posts: 1

SAS Sample: Sample 41880 (reading in a directory)


I was looking at a sample SAS code: Sample 41880. It's url is:

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,176

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
Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation