<?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 know the name of the program running in SAS Studio / SAS Viya? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724830#M9871</link>
    <description>&lt;P&gt;Apologies, I should have mentioned that I did %put _all_; and didn't find any macro variable that contained the program name.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 11:51:22 GMT</pubDate>
    <dc:creator>alexandravieira</dc:creator>
    <dc:date>2021-03-09T11:51:22Z</dc:date>
    <item>
      <title>how do I know the name of the program running in SAS Studio / SAS Viya?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724801#M9869</link>
      <description>&lt;P&gt;Like &amp;amp;_CLIENTTASKLABEL in EG, that gave you the name of the .sas, is there such a thing for sas studio / sas viya?&lt;/P&gt;
&lt;P&gt;[edited] I did %put _all_; and couldn't find any macro variable with the program name. I'm not looking for a solution based on a macro var necessarily, I'm looking for any sort of solution&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 11:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724801#M9869</guid>
      <dc:creator>alexandravieira</dc:creator>
      <dc:date>2021-03-09T11:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: how do I know the name of the program running in SAS Studio / SAS Viya?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724821#M9870</link>
      <description>Use &lt;BR /&gt;%put _all_ ;&lt;BR /&gt;&lt;BR /&gt;Check if there is a automatic macro variable&lt;BR /&gt;&amp;amp;_sasprogramfile&lt;BR /&gt;in LOG .</description>
      <pubDate>Tue, 09 Mar 2021 11:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724821#M9870</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-09T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: how do I know the name of the program running in SAS Studio / SAS Viya?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724830#M9871</link>
      <description>&lt;P&gt;Apologies, I should have mentioned that I did %put _all_; and didn't find any macro variable that contained the program name.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 11:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724830#M9871</guid>
      <dc:creator>alexandravieira</dc:creator>
      <dc:date>2021-03-09T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: how do I know the name of the program running in SAS Studio / SAS Viya?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724954#M9884</link>
      <description>&lt;P&gt;Another place to look is in the external files list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    set sashelp.vextfl;
    put 10*'*' (_all_)(=/) / 10*'*';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That doesn't show anything interesting for SAS Studio programs run the foreground, but for a background job you will see something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;**********
fileref=_BTCHLOG
xpath=/home/c449630/sas/sysparm.log
xengine=DISK
modate=09MAR21:10:55:56
filesize=8310
level=0
directory=no
exists=yes
temporary=no
**********
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The batch log is stored in the same location as the source file, with the same base file name, so I can tell that the source file was&amp;nbsp;&lt;CODE class=" language-sas"&gt;/home/c449630/sas/sysparm.sas&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That probably doesn't help you, as you didn't say you were running in background mode, but it might help someone else.&amp;nbsp; There's also a STDIN fileref, which isn't useful in this case, but might be helpful at some other time.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 19:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-do-I-know-the-name-of-the-program-running-in-SAS-Studio-SAS/m-p/724954#M9884</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-03-09T19:09:31Z</dc:date>
    </item>
  </channel>
</rss>

