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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 652 views
  • 2 likes
  • 3 in conversation