<?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 Unix - called programs - automatic macro variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91164#M19269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Unix I will start program_A, this program will call program_B at a certain moment.&lt;BR /&gt;In program_B I like to check out some macro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me which value macrovariable SYSJOBID would have, at the moment of executing program_B ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping for a automatic macro variable which will contain such like &lt;STRONG&gt;/&amp;lt;path&amp;gt;/program_A.sas&lt;/STRONG&gt; (the calling program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I can't test it on my own due to a lack of authorisation in Unix.&lt;/P&gt;&lt;P&gt;In SAS Enterprise_Guide the variable _SASPROGRAMFILE would have a value of program_A. &lt;BR /&gt;But this programs are meant to run under SAS-Unix commandline-mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 15:22:55 GMT</pubDate>
    <dc:creator>Hans_Netherlands</dc:creator>
    <dc:date>2013-01-30T15:22:55Z</dc:date>
    <item>
      <title>Unix - called programs - automatic macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91164#M19269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under Unix I will start program_A, this program will call program_B at a certain moment.&lt;BR /&gt;In program_B I like to check out some macro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me which value macrovariable SYSJOBID would have, at the moment of executing program_B ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping for a automatic macro variable which will contain such like &lt;STRONG&gt;/&amp;lt;path&amp;gt;/program_A.sas&lt;/STRONG&gt; (the calling program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, but I can't test it on my own due to a lack of authorisation in Unix.&lt;/P&gt;&lt;P&gt;In SAS Enterprise_Guide the variable _SASPROGRAMFILE would have a value of program_A. &lt;BR /&gt;But this programs are meant to run under SAS-Unix commandline-mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91164#M19269</guid>
      <dc:creator>Hans_Netherlands</dc:creator>
      <dc:date>2013-01-30T15:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unix - called programs - automatic macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91165#M19270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SYSJOBID&lt;/P&gt;&lt;P&gt;might be the processID of the SAS session that is running (A or B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when a sas task is launched, the name of the initial program invoked as SAS starts (as a "batch SAS task" is stored in the system option SYSIN &lt;/P&gt;&lt;P&gt;retrieve the value with base SAS code like&lt;/P&gt;&lt;P&gt;%put %sysfunc( getoption( sysin )) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 23:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91165#M19270</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-01-31T23:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unix - called programs - automatic macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91166#M19271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Peter, it works great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unix-called-programs-automatic-macro-variables/m-p/91166#M19271</guid>
      <dc:creator>Hans_Netherlands</dc:creator>
      <dc:date>2013-02-12T08:06:36Z</dc:date>
    </item>
  </channel>
</rss>

