<?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: Refer Global Macro variables created @ Autoexec in DataFlux in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562442#M17238</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33513"&gt;@sanalitics&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you call the DF job out of SAS using function&amp;nbsp;DMSRVBATCHJOB() then you can pass in any number of parameters as key/value pairs.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/dqclref/70016/HTML/default/viewer.htm#n16n5k2yshx25bn12247zrhr7sfu.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/dqclref/70016/HTML/default/viewer.htm#n16n5k2yshx25bn12247zrhr7sfu.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not the DF expert so can't tell you what needs to be done on the DF side to receive these parameters. But I've been in a project where this has been done so I know it works.&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 00:12:36 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2019-05-30T00:12:36Z</dc:date>
    <item>
      <title>Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/561752#M17217</link>
      <description>&lt;P&gt;Is there a way the macro created&amp;nbsp;@ autoexec.sas , say for example %let test_macro=TEST could be called/referred in DataFlux?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 13:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/561752#M17217</guid>
      <dc:creator>sanalitics</dc:creator>
      <dc:date>2019-05-27T13:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562391#M17236</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me which DataFlux product or products you want to be able to refer these global macro variables in?&lt;/P&gt;
&lt;P&gt;Would this be DataFlux Data Management Studio, and more specifically, the SAS Code Node and or SAS Code (Reference) Node?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not a DataFlux product expert but will attempt to help you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 18:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562391#M17236</guid>
      <dc:creator>ChrisLysholm</dc:creator>
      <dc:date>2019-05-29T18:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562442#M17238</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33513"&gt;@sanalitics&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you call the DF job out of SAS using function&amp;nbsp;DMSRVBATCHJOB() then you can pass in any number of parameters as key/value pairs.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/dqclref/70016/HTML/default/viewer.htm#n16n5k2yshx25bn12247zrhr7sfu.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/dqclref/70016/HTML/default/viewer.htm#n16n5k2yshx25bn12247zrhr7sfu.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not the DF expert so can't tell you what needs to be done on the DF side to receive these parameters. But I've been in a project where this has been done so I know it works.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 00:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562442#M17238</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-30T00:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562474#M17239</link>
      <description>&lt;P&gt;Thanks for responding Chris:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following are the details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using DataFlux Data Management Studio&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To be more clear... I have created a global variable in autoexec.sas , so I have this macro variable available in every session of the Data Integration Studio.... how could I get the value of this global variable in every session of DF . Is there a way macro variable could be shared between SAS BI and DF?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sandeep&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 05:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562474#M17239</guid>
      <dc:creator>sanalitics</dc:creator>
      <dc:date>2019-05-30T05:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562475#M17240</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the response... Kindly find more information on my ticket in the above post.&lt;/P&gt;
&lt;P&gt;In fact... i don't want to call any service in DF, instead I would like to get the value&amp;nbsp; of macro variable defined&amp;nbsp;@ Autoexec.sas&amp;nbsp;into DF&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 05:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562475#M17240</guid>
      <dc:creator>sanalitics</dc:creator>
      <dc:date>2019-05-30T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562905#M17263</link>
      <description>&lt;P&gt;OK, thanks for the additional information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not a DataFlux expert, but I do know that each time the SAS Code Node executes it starts a new SAS session on the defined workspace server. When the SAS Code Node completes this session is terminated. Perhaps an autoexec.sas file could be defined that will execute with each SAS session that is started by the SAS Code Node. Another approach might be to store macro variable/value pairs in a sas dataset and then read those values in a data step and execute the required %let macro variable declarations all within the SAS Code Node.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 16:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/562905#M17263</guid>
      <dc:creator>ChrisLysholm</dc:creator>
      <dc:date>2019-05-31T16:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563074#M17272</link>
      <description>&lt;P&gt;Thanks Chris, but this is a way to create a macro in SAS code node... but I want a solution to get the same macro value in DF&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 07:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563074#M17272</guid>
      <dc:creator>sanalitics</dc:creator>
      <dc:date>2019-06-01T07:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563089#M17273</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33513"&gt;@sanalitics&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand it a DataFlux server is independent from SAS servers. They sit side by side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS Autoexec gets executed during SAS invocation. It's part of your SAS environment configuration. DataFlux got its own configuration files.&lt;/P&gt;
&lt;P&gt;You've got integration points between SAS and DataFlux. I don't know if that's possible but you would need to call a SAS job or service out of DataFlux which returns the value of the SAS macro variable back to DataFlux (like: Build a SAS service which you can call via HTTP request and which returns the value of the SAS macro variable back to DataFlux).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the SAS and DataFlux Server are on the same machine then an alternative option could be: Define an environment variable on OS level which is accessible by both SAS and DataFlux.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But then: May be it's just best if you define this variable independently in the SAS and the DataFlux configuration and then make it a documented admin task for keeping it in sync. Such configuration values shouldn't really have to change once defined. That's the option I'd be going for unless there is a very compelling reason for doing something more complex.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 14:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563089#M17273</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-06-01T14:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563115#M17277</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Build a SAS service which you can call via HTTP request and which returns the value of the SAS macro variable back to DataFlux)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should solve the problem...&lt;/SPAN&gt;&lt;SPAN&gt;Let me know if you could send a good link which directs me to the process to call a SAS services&amp;nbsp;from Dataflux... and also I think SAS should look into integrating both DF and SAS services to solve so many such issues ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sandeep&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 05:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563115#M17277</guid>
      <dc:creator>sanalitics</dc:creator>
      <dc:date>2019-06-02T05:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Refer Global Macro variables created @ Autoexec in DataFlux</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563120#M17278</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33513"&gt;@sanalitics&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;Let me know if you could send a good link which directs me to the process to call a SAS services&amp;nbsp;from Dataflux.&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;I'm not a DF expert but it appears there is a HTTP node&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/dfdmstudio/2.7/dmpdmsug/Content/dfDMStd_HTTP_Request.html" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/dfdmstudio/2.7/dmpdmsug/Content/dfDMStd_HTTP_Request.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course to call a web service it must exist. So first thing you need to do is create such a web service on the SAS side. Here links a found with a bit of Googling"&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1937-2018.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/1937-2018.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/60/964.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/60/964.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;.&lt;EM&gt;.. and also I think SAS should look into integrating both DF and SAS services to solve so many such issues ....&lt;/EM&gt;&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;If you have suggestions for a better integration then put it here as an idea:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Community-Suggestion-Box/idb-p/community_ideas" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Community-Suggestion-Box/idb-p/community_ideas&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 07:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Refer-Global-Macro-variables-created-Autoexec-in-DataFlux/m-p/563120#M17278</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-06-02T07:43:14Z</dc:date>
    </item>
  </channel>
</rss>

