BookmarkSubscribeRSS Feed
SushilNayak
Obsidian | Level 7
Hi,
I was just going through an old code, saw this wierd ?? in the INPUT statement, can someone please tell me what this ?? does, i have searched on GOOGLE but ?? is pretty common string online so couldn't find anything.

DATA DUMMY;
INFILE PREVFILE;
INPUT @01 TESTBYTE ?? $CHAR1.;
RUN;

Thanks!
1 REPLY 1
GertNissen
Barite | Level 11
? or ??
The optional question mark (?) and double question mark (??) format modifiers suppress the printing of both the error messages and the input lines when invalid data values are read. The ? modifier suppresses the invalid data message. The ?? modifier also suppresses the invalid data message and, in addition, prevents the automatic variable _ERROR_ from being set to 1 when invalid data are read.

Found it in the SAS doc http://support.sas.com/onlinedoc/913/getDoc/da/lrdict.hlp/a000146292.htm#a000146295

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