BookmarkSubscribeRSS Feed
hjinp
Fluorite | Level 6

Hello,

 

I am currently reading through a Base SAS Introduction book and came across

Capture.PNG

 

I am wondering why IdNumber and Name indicate spacing of 1-4 and 6-24 behind it while team, startweight and endweight variables do not have any specifications?

Thank you!

 

-hjinp

2 REPLIES 2
Kurt_Bremser
Super User

Look at the lines of text in the file you read, and you might get a clue why, for some variables, fixed positions are used, while others are simply read along the delimiters.

Tom
Super User Tom
Super User

Probably to show you that it is possible to mix different input modes in the same INPUT statement.

 

The variables with the column numbers are being read using COLUMN mode and the others are using LIST mode.  While you are at it read about FORMATTED mode and NAMED mode.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 562 views
  • 4 likes
  • 3 in conversation