BookmarkSubscribeRSS Feed
paul_e
Obsidian | Level 7

Hello, when importing an Excel file with more then worksheets in SAS Studio (on Viya 4) SAS Studio will give the different output tables cryptic names (such as _flw1235456846856). How do I make SAS Studio give the work files names according to the original worksheet names?

3 REPLIES 3
ballardw
Super User

What are the exact sheet names of the spreadsheets in question?

Many sheet names are not valid for SAS data set names.People put spaces, ( ) and other characters not valid in names.

You might be able to get closer by setting the system option VALIDMEMNAME=extend;

But that will require you for any name that is not a valid SAS name consisting only of letters, digits and underscore characters to use names like "This stupid*name"n with quotes and the N every time you want to use that set and have to make sure the validmemname setting is extend.

 

Even then you may have issues if some has placed one or more quotes into the sheet name.

paul_e
Obsidian | Level 7
The sheet names are all valid SAS dataset names. The issue is that the import node doesn't seem to even consider naming the output tables after the worksheets. The nodes are named after them but the physical tables aren't and there doesn't seem to be a way to change the configuration of the import node.
paul_e
Obsidian | Level 7

Any solution to this? Another complication is that the tables will get different names each time the flow file is reopened. So I can't even build a consistent mapping renaming the files to their intended names.

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