<?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 to display name of the programme (for example l_ae.sas) inside the output which it is creati in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957989#M373926</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt;&amp;nbsp;for the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Base SAS. So in short, it is not available on Base SAS it seems.&amp;nbsp;But thanks for sharing that it is available on Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanking you,&lt;/P&gt;
&lt;P&gt;Yours sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 11:43:29 GMT</pubDate>
    <dc:creator>DrAbhijeetSafai</dc:creator>
    <dc:date>2025-02-03T11:43:29Z</dc:date>
    <item>
      <title>How to display name of the programme (for example l_ae.sas) inside the output which it is creating?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957986#M373923</link>
      <description>&lt;P&gt;While &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-automatically-add-data-set-name-on-output-title/td-p/576517" target="_self"&gt;this&lt;/A&gt; discussion accurately tells how to display last dataset used in the programme, I was thinking if there is a way to display the name of the programme inside the output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is no way, then simply manually typing it in title or footnote is the solution but I would like to know if there is any way by which I can do it automatically so that I need not type it manually in each programme.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957986#M373923</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2025-02-03T09:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957987#M373924</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using Enterprise Guide then&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2012/10/09/special-macro-vars-in-eg/" target="_blank" rel="noopener"&gt;Special automatic macro variables available in SAS Enterprise Guide&lt;/A&gt;&amp;nbsp;might be of help, in particular _sasprogramfile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957987#M373924</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-02-03T09:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957988#M373925</link>
      <description>&lt;P&gt;One approach:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Currently the program is %sysfunc(getoption(sysin))";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also see:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Get-program-name-and-path-when-using-INCLUDE/td-p/529145" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Get-program-name-and-path-when-using-INCLUDE/td-p/529145&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 09:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957988#M373925</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2025-02-03T09:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957989#M373926</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt;&amp;nbsp;for the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Base SAS. So in short, it is not available on Base SAS it seems.&amp;nbsp;But thanks for sharing that it is available on Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanking you,&lt;/P&gt;
&lt;P&gt;Yours sincerely,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 11:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957989#M373926</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2025-02-03T11:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957991#M373927</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27897"&gt;@DrAbhijeetSafai&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See "&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p1ns5wvyfxbca8n1l3konj0yj6nq.htm" target="_blank" rel="noopener"&gt;Example 6: How to Retrieve the Program Name That Is Currently Running in Batch Mode or Interactively&lt;/A&gt;" in the documentation for more options, in particular the Windows environment variables&amp;nbsp;&lt;SPAN&gt;SAS_EXECFILENAME and&amp;nbsp;SAS_EXECFILEPATH if you're running a program interactively.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "This is program %sysget(sas_execfilename).";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Feb 2025 10:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957991#M373927</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-02-03T10:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957995#M373928</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;Many many thanks! This is working perfectly. Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 10:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957995#M373928</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2025-02-03T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957996#M373929</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;This is working! So many thanks. There is a minor change which will need to be made though. It is showing 'full path' but I need only the name of the programme. I will make changes for that but your answer is very very helpful. Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 10:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957996#M373929</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2025-02-03T10:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957997#M373930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feel free to mark another post (instead of mine) as the solution, as they are closer to what you were looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 11:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957997#M373930</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-02-03T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957998#M373931</link>
      <description>&lt;P&gt;Yes, I agree. However, it seems that it is not in my hands. I request&amp;nbsp;admins&amp;nbsp;to kindly mark &lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957988#M373925" target="_self"&gt;this&lt;/A&gt; answer by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp; as the accepted solution by removing the current answer by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt;&amp;nbsp;as a solution. Also, kindly feel free to delete this message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/957998#M373931</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2025-02-03T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/958003#M373933</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27897"&gt;@DrAbhijeetSafai&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I agree. However, it seems that it is not in my hands.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Normally you can do it:&lt;/P&gt;
&lt;P&gt;Select a different post&amp;nbsp;as the solution after clicking&amp;nbsp;"Not the Solution" in the option menu (see icon below) of the current solution.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show_option_menu.png" style="width: 155px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/104247i4033006C7354E76E/image-size/large?v=v2&amp;amp;px=999" role="button" title="show_option_menu.png" alt="show_option_menu.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/958003#M373933</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-02-03T12:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to display name of the programme (for example l_ae.sas) inside the output which it is creati</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/958006#M373935</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Dr. Abhijeet Safai&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 12:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-name-of-the-programme-for-example-l-ae-sas-inside/m-p/958006#M373935</guid>
      <dc:creator>DrAbhijeetSafai</dc:creator>
      <dc:date>2025-02-03T12:27:40Z</dc:date>
    </item>
  </channel>
</rss>

