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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1166 views
  • 0 likes
  • 2 in conversation