BookmarkSubscribeRSS Feed
toucan
Calcite | Level 5
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
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1201 views
  • 0 likes
  • 2 in conversation