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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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