<?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 Re: Global macro variable not showing up in SAS Enterprise Guide? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606572#M17422</link>
    <description>&lt;P&gt;Are you executing program A and program B in the same EG session? Are the lines of code before &lt;FONT face="courier new,courier"&gt;%put _global_;&lt;/FONT&gt; the same?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 21:02:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-11-22T21:02:11Z</dc:date>
    <item>
      <title>Global macro variable not showing up in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606571#M17421</link>
      <description>&lt;P&gt;Hey everyone! I'm in bit of a pickle and have spent hours trying to figure this out so hoping someone out there can help. I have a project in SAS EG that contains two programs. Now, I inherited this project so I don't know what went into creating this project. But basically, one of the programs uses a &amp;amp;month and&amp;nbsp;&amp;amp;year macro variable that gets defined in the Project Prompts screen when you run the project. These should be global variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact, &amp;amp;month is a global variable. When I run both programs, the variable gets initialized correctly.&lt;/P&gt;&lt;P&gt;But for whatever reason, that's not happening with &amp;amp;year. It works in Program A but is not present in Program B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put in this code in Program A to see the macro variables:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _global_;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;25 GOPTIONS ACCESSIBLE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;26 %put _global_;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;GLOBAL MONTH November&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;GLOBAL YEAR 2018&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I put the same code in Program B:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _global_;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only get this:&lt;/P&gt;&lt;P&gt;22 GOPTIONS ACCESSIBLE;&lt;/P&gt;&lt;P&gt;23 %put _global_;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;GLOBAL MONTH November&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Does anyone know why this is happening?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 20:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606571#M17421</guid>
      <dc:creator>adventuresinsas</dc:creator>
      <dc:date>2019-11-22T20:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Global macro variable not showing up in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606572#M17422</link>
      <description>&lt;P&gt;Are you executing program A and program B in the same EG session? Are the lines of code before &lt;FONT face="courier new,courier"&gt;%put _global_;&lt;/FONT&gt; the same?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 21:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606572#M17422</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-22T21:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Global macro variable not showing up in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606585#M17423</link>
      <description>&lt;P&gt;The line numbers differ in the two logs; this points to different environments.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 21:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/606585#M17423</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-22T21:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Global macro variable not showing up in SAS Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/616980#M18983</link>
      <description>&lt;P&gt;Just an update to everyone: I discovered that the reason for this was because I didn't have the "Use prompt value throughout project" box selected for that particular prompt/macro variable. Checking that box solved my issue.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 17:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Global-macro-variable-not-showing-up-in-SAS-Enterprise-Guide/m-p/616980#M18983</guid>
      <dc:creator>adventuresinsas</dc:creator>
      <dc:date>2020-01-13T17:18:35Z</dc:date>
    </item>
  </channel>
</rss>

