BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JohnJPS
Quartz | Level 8

I've recreated the issue as simply as I can... in Enterprise Guide, I have a very simple process with two programs.

ProgramA:

%global TestDTE;
%let TestDTE = %sysfunc(putn(%sysfunc(TODAY()),yymmdd10.));
run;
%put _GLOBAL_;
run;

ProgramB:

%put _GLOBAL_;
run;
proc sql;
  connect to SQLSVR(dsn='testdsn');
  create table work.jpstemp as
  select * from connection to SQLSVR
(
  SELECT dt1 = %str(%')&TestDTE%str(%');
);
run;

So, just creating a simple global variable in ProgramA, which is linked into ProgramB. ProgramB then wants to consume the variable.

 

Before ProgramA is finished, I put all globals, which has among other things:

GLOBAL TESTDTE 2017-09-06

 But in ProgramB, the first thing I do is put all globals again, and it is no longer there... which leads to the "symbolic reference not resolved" warning in ProgramB's sample SQL statement.

 

My understanding is that globals should remain for the duration of my EG session, and when running a ProcessFlow, they should remain over the course of the entire process.  Is that an incorrect assumption, or can this be fixed up somehow?

1 ACCEPTED SOLUTION

Accepted Solutions
JohnJPS
Quartz | Level 8

Kind of embarassing, but I figured it out: the two programs were somehow targeting different workspace servers.

 

Once both were on the same server, all was well.

View solution in original post

1 REPLY 1
JohnJPS
Quartz | Level 8

Kind of embarassing, but I figured it out: the two programs were somehow targeting different workspace servers.

 

Once both were on the same server, all was well.

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!

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