BookmarkSubscribeRSS Feed
jjjch
Obsidian | Level 7

At least the columns names created by "proc import" are different depending on the codes are running in SAS Base or SAS Enterprise Guide.

 

As a result of column name differences, the codes created in SAS Enterprise Guide cannot run sucessfully in SAS Base.

 

How to make SAS Enterprise Guide to generate the same codes as SAS Base for "proc import"?

 

Thank you!

2 REPLIES 2
Reeza
Super User

Depends what you mean. It's possible you could be running two different versions of SAS, but most likely you need to set the following option:

 

option validvarname=v7;

EG is set to ANY by default, which allows more variation in naming, but I find it just confuses things. 

Try this and see if that helps. If not, post back with more details and an example of how they're different.

ballardw
Super User

For a similar issue please read through this thread: https://communities.sas.com/t5/Base-SAS-Programming/Importing-Excel-into-SAS/m-p/363447

 

I know that you did not say that your data is Excel. Excel and other spreadsheets are just one layer of the underlying issue:

Proc IMPORT Guesses and the guesses may change from file to file based on the content. Any process that relies heavily on Proc Import will eventually fail.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 1241 views
  • 2 likes
  • 3 in conversation