Hi,
Just like many of you, I have many requests by users to upload various data sets to VA. I mostly do it with SAS EG. (Why SAS EG when you can do this with VA?, I'm just a big fan of EG and and have many use for it when managing various issues of SAS).
And probably like many of you, I've created a SAS EG project to upload various data sources to VA. Lately I ran into this issue:
The internal "Upload to LASR" function in SAS EG makes use of such code: (e.g. Loading the "data set A" table. Yes I know, it should never have such a naming, but stay with me)
%registerTable(
LIBRARY=%nrstr(/Products/SAS Visual Analytics Administrator/Visual Analytics LASR)
, FOLDER=%nrstr(/The/Data/Source/data set A));
The above runs fine even though empty spaces are part of the table name.
If you try to upload multiple tables in batch with code like this: (which could include table names with spaces):
%registerTable(
LIBRARY=%nrstr(/Products/SAS Visual Analytics Administrator/Visual Analytics LASR)
, FOLDER=&tblFolder.);
The code fails on "FOLDER=&tblFolder." statement with:
ERROR: Given folder path '/The/Data/Source/data set A'n is not found.
I've tried many quote/unquote variations and can't get it to work.
Help!!!!!!!
Somehow your folder name became a name literal '/The/Data/Source/data set A'n (are you using the NLITERAL function)
For a Foldername this is not necessary.
Change your code that creates the &tblFolder macro variable, so you are not using the name literal.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.