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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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