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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 702 views
  • 4 likes
  • 3 in conversation