BookmarkSubscribeRSS Feed
Pramod_R
Calcite | Level 5
Hi,

I was trying to use the prompts while running a code which was "grid enabled".

When I say Grid enabled, that means that I have enabled "Insert Custom SAS code before submitted Code" and added the below code.

options metaserver='metadata-server-address';
options metaport=metadata-server-port;;
%let rc=%sysfunc(grdsvc_enable(_all_,resource=SASApp));
signon task1;
rsubmit;

And also added a custom code to be run after the sumbitted the code as given below:

endrsubmit;
signoff;

The problem that i'm encounteriing while running the codes with prompts, is that the macro variable that gets assigned in the beginning of the code (eg: %LET name = Mary;) at the EG end, would not get carried to the server where the actual code gets run in the grid enviroinment.

So my code doesn't have a value for the macro variable name and throws up the error saying:
WARNING: Apparent symbolic reference NAME not resolved.

This however runs fine when I'm running the code without the grid enablement.

Hope my question is clear.

Thanks in Advance
Pramod
1 REPLY 1
mgst170
SAS Employee
Hi Pramod,

You need to send the macros to your Grid session using a %syslput of the macro var after your signon....

If this is from EG, the pre/post code should have statements to send all your macro vars to the Grid session.

Cheers. Message was edited by: mgst170

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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