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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 450 views
  • 4 likes
  • 3 in conversation