BookmarkSubscribeRSS Feed
Bhagya_raj
Calcite | Level 5

Hi all,

 

When it comes to reading in raw data with Infile statements, can someone explain what a 'short line' is?

 

This seems to play a big part in distinguishing between Missover, stopover and truncover?

(It would be great to get an explanation of the differences here too!)

 

Is it to do with the row of data being read in to have fewer columns or  entries than expected?

 

Thanks very much,

Bhagya

2 REPLIES 2
snoopy369
Barite | Level 11

If you're just asking what the term "short line" is, then yes, it's a line of input data that has a record length that is less than the longest requested record length by the INPUT statement.

The missover/stopover/truncover options determine what to do when that happens (when SAS attempts to read past a line delimiter, meaning a CR/LF/whichever or both are used by your OS/program).

 

Kiranv's linked paper explains them well, but in brief:  STOPOVER says to treat as an error any time it attempts to read past a line delimiter.  MISSOVER says to treat any variable that extends past the line delimiter as missing (including one that starts before it).  TRUNCOVER is similar but does not treat a variable that starts before the line delimiter as missing, it just truncates it to the line delimiter.  FLOWOVER basically ignores the line delimiter and keeps looking for more data after it (and is default).

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
  • 2 replies
  • 1078 views
  • 1 like
  • 3 in conversation