BookmarkSubscribeRSS Feed
RexDeus9
Quartz | Level 8

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!!!!!!!

1 REPLY 1
BrunoMueller
SAS Super FREQ

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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

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.

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
  • 1 reply
  • 776 views
  • 0 likes
  • 2 in conversation