<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Apparent symbolic reference not resolved for globals between programs in a Process Flow in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved-for-globals-between/m-p/393716#M94835</link>
    <description>&lt;P&gt;I've recreated the issue as simply as I can... in Enterprise Guide, I have a very simple process with two programs.&lt;/P&gt;&lt;P&gt;ProgramA:&lt;/P&gt;&lt;PRE&gt;%global TestDTE;
%let TestDTE = %sysfunc(putn(%sysfunc(TODAY()),yymmdd10.));
run;
%put _GLOBAL_;
run;&lt;/PRE&gt;&lt;P&gt;ProgramB:&lt;/P&gt;&lt;PRE&gt;%put _GLOBAL_;
run;
proc sql;
  connect to SQLSVR(dsn='testdsn');
  create table work.jpstemp as
  select * from connection to SQLSVR
(
  SELECT dt1 = %str(%')&amp;amp;TestDTE%str(%');
);
run;&lt;/PRE&gt;&lt;P&gt;So, just creating a simple global variable in ProgramA, which is linked into ProgramB. ProgramB then wants to consume the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before ProgramA is finished, I put all globals, which has among other things:&lt;/P&gt;&lt;PRE&gt;GLOBAL TESTDTE 2017-09-06&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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. &amp;nbsp;Is that an incorrect assumption, or can this be fixed up somehow?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 21:13:51 GMT</pubDate>
    <dc:creator>JohnJPS</dc:creator>
    <dc:date>2017-09-06T21:13:51Z</dc:date>
    <item>
      <title>Apparent symbolic reference not resolved for globals between programs in a Process Flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved-for-globals-between/m-p/393716#M94835</link>
      <description>&lt;P&gt;I've recreated the issue as simply as I can... in Enterprise Guide, I have a very simple process with two programs.&lt;/P&gt;&lt;P&gt;ProgramA:&lt;/P&gt;&lt;PRE&gt;%global TestDTE;
%let TestDTE = %sysfunc(putn(%sysfunc(TODAY()),yymmdd10.));
run;
%put _GLOBAL_;
run;&lt;/PRE&gt;&lt;P&gt;ProgramB:&lt;/P&gt;&lt;PRE&gt;%put _GLOBAL_;
run;
proc sql;
  connect to SQLSVR(dsn='testdsn');
  create table work.jpstemp as
  select * from connection to SQLSVR
(
  SELECT dt1 = %str(%')&amp;amp;TestDTE%str(%');
);
run;&lt;/PRE&gt;&lt;P&gt;So, just creating a simple global variable in ProgramA, which is linked into ProgramB. ProgramB then wants to consume the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before ProgramA is finished, I put all globals, which has among other things:&lt;/P&gt;&lt;PRE&gt;GLOBAL TESTDTE 2017-09-06&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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. &amp;nbsp;Is that an incorrect assumption, or can this be fixed up somehow?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:13:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved-for-globals-between/m-p/393716#M94835</guid>
      <dc:creator>JohnJPS</dc:creator>
      <dc:date>2017-09-06T21:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Apparent symbolic reference not resolved for globals between programs in a Process Flow</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved-for-globals-between/m-p/393722#M94839</link>
      <description>&lt;P&gt;Kind of embarassing, but I figured it out: the two programs were somehow targeting different workspace servers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once both were on the same server, all was well.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Apparent-symbolic-reference-not-resolved-for-globals-between/m-p/393722#M94839</guid>
      <dc:creator>JohnJPS</dc:creator>
      <dc:date>2017-09-06T21:43:47Z</dc:date>
    </item>
  </channel>
</rss>

