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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1306 views
  • 0 likes
  • 2 in conversation