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

Hi All - 

 

I've uploaded an excel file 10k rows to SAS Studio, which I'm trying to import into SAS Miner. When I go to Select a SAS Table, I receive the following error message: "The data set contains variables  with invalid column names. The SAS option VALIDVARNAME=ANY is currently disabled. Please consult your SAS Language  Reference for more information."

 

I've been unsuccessful in searching/researching what this means and how to solve for it. Attached is a sample 50 lines of the CSV I'm trying to import. Yes, this is from Kaggle. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

The column headings in your spreadsheet do not follow SAS naming conventions. If you use the SAS option validvarname = any then this should fix the problem:

options VALIDVARNAME=ANY;

 

 

The alternative is to correct your column headings which must consist of only A-Z letters, 0 - 9 digits, or underscores.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

The column headings in your spreadsheet do not follow SAS naming conventions. If you use the SAS option validvarname = any then this should fix the problem:

options VALIDVARNAME=ANY;

 

 

The alternative is to correct your column headings which must consist of only A-Z letters, 0 - 9 digits, or underscores.

jgrl55
Calcite | Level 5
Thanks for the quick reply! SAS Miner noob. Removing the spaces in the column headings worked.

sas-innovate-wordmark-gradient-background 3.pngSAS Innovate

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 2 replies
  • 5500 views
  • 1 like
  • 2 in conversation