<?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: How do I pass a defined macro from a EG job to EG defined stored process without using prompts f in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259603#M4919</link>
    <description>&lt;P&gt;Put global definitions for both Workspace Server and Stored Process Server into&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;appserver_autoexec_usermods.sas&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;in your &lt;FONT face="courier new,courier"&gt;SASApp&lt;/FONT&gt; directory in your configuration tree.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 07:25:40 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-03-29T07:25:40Z</dc:date>
    <item>
      <title>How do I pass a defined macro from a EG job to EG defined stored process without using prompts func</title>
      <link>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259564#M4918</link>
      <description>&lt;P&gt;How do I pass a defined macro from a EG job to EG defined stored process without using the prompts function in stored process.&lt;/P&gt;
&lt;P&gt;for example in EG, I have two jobs, Job A is a normal EG job , Job is a stored process&lt;/P&gt;
&lt;P&gt;in job A i have&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LOCATION=C:\TE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;In Job B(stored process)&amp;nbsp;I have&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;LIBNAME&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; A &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;LOCATION"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; A.A;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;A=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;how do I make job B recognize macro variable &amp;amp;location&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 02:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259564#M4918</guid>
      <dc:creator>gyambqt</dc:creator>
      <dc:date>2016-03-29T02:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pass a defined macro from a EG job to EG defined stored process without using prompts f</title>
      <link>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259603#M4919</link>
      <description>&lt;P&gt;Put global definitions for both Workspace Server and Stored Process Server into&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;appserver_autoexec_usermods.sas&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;in your &lt;FONT face="courier new,courier"&gt;SASApp&lt;/FONT&gt; directory in your configuration tree.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259603#M4919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-29T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pass a defined macro from a EG job to EG defined stored process without using prompts f</title>
      <link>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259911#M4920</link>
      <description>&lt;P&gt;Hi KurtBremser, I have defined %global location; in the appserver_autoexec_usermods, I don't get get&amp;nbsp; error message anymore &amp;nbsp;but it is still unable to pass the value from JOB A to JOB B.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 22:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259911#M4920</guid>
      <dc:creator>gyambqt</dc:creator>
      <dc:date>2016-03-29T22:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pass a defined macro from a EG job to EG defined stored process without using prompts f</title>
      <link>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259964#M4921</link>
      <description>&lt;P&gt;The Workspace Server and Stored Process Server are distinct processes that do not communicate with each other. Common environments are delivered through metadata or configuration at startup, but will stay static within each process unless deliberately changed.&lt;/P&gt;
&lt;P&gt;Defining a macro variable as %global in the autoexec only means that the variable will be global for each process, but never across processes. And you still need to assign it a value in each process, either through setting in the autoexec or within each program or EG session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to share definitions &lt;U&gt;dynamically&lt;/U&gt; across your whole SAS environment, you need to set up mechanisms to do that. You could store such information in centrally located datasets, or you could write those to SAS program files that are %included when needed.&lt;/P&gt;
&lt;P&gt;Keep in mind that each process then must read such information repeatedly to stay current!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 05:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-do-I-pass-a-defined-macro-from-a-EG-job-to-EG-defined-stored/m-p/259964#M4921</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-30T05:28:32Z</dc:date>
    </item>
  </channel>
</rss>

