BookmarkSubscribeRSS Feed
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!

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.

Super User

For a similar issue please read through this thread:


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.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3 in conversation