BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
_maldini_
Barite | Level 11

@ballardw Thanks for sharing your approach here. I think I'm going to adopt this approach going forward.

 

Quick question: Do you know how may observations SAS reads during a PROC IMPORT before it makes its determination about the attributes of a particular variable?  I'm thinking specifically about the length of character variables, but I'm interested in the answer for informats and formats also. Thanks!

Reeza
Super User

That's what GuessingRows specifies - the default value is 20 in SAS 9.3 according to the documentation. 

 

Do you have a specification file? If you have one another trick is to use Excel to create the statements. 

_maldini_
Barite | Level 11

@Reeza 

 

<That's what GuessingRows specifies>

 

I understand. I was referring to a PROC IMPORT w/o using the GUESSINGROWS statement.

 

<the default value is 20>

 

Meaning the first 20 observations (assuming no GUESSINGROWS statement)?

 

 

Reeza
Super User

@_maldini_ wrote:

@Reeza 

 

<That's what GuessingRows specifies>

 

I understand. I was referring to a PROC IMPORT w/o using the GUESSINGROWS statement.

 

<the default value is 20>

 

Meaning the first 20 observations (assuming no GUESSINGROWS statement)?

 

 


Yes, you should probably verify that's true in your version of SAS in the documentation though. Things change between versions. 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 18 replies
  • 8334 views
  • 14 likes
  • 5 in conversation