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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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