<?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 Issue getting sysin value using RSUBMIT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416729#M102343</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the batch mode value first but it is blank so then revert to using the _SASPROGRAMFILE macro var.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I wonder if there is a better way to handle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This happens when I submit the code using RSUBMIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro pgmname() ;
   %local retval ;
   %let retval = %sysfunc( getoption( sysin ) ) ; /* batch mode */
   %if %isblank( &amp;amp;retval. ) %then %let retval = &amp;amp;_SASPROGRAMFILE ; /*interactive mode */
&lt;BR /&gt;   /* next line removes single quotes produced in interactive mode */
   %qsysfunc( compress( &amp;amp;retval., %str(%') ) )
%mend ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Nov 2017 15:40:48 GMT</pubDate>
    <dc:creator>arpitsharma27</dc:creator>
    <dc:date>2017-11-28T15:40:48Z</dc:date>
    <item>
      <title>Issue getting sysin value using RSUBMIT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416729#M102343</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the batch mode value first but it is blank so then revert to using the _SASPROGRAMFILE macro var.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I wonder if there is a better way to handle this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This happens when I submit the code using RSUBMIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro pgmname() ;
   %local retval ;
   %let retval = %sysfunc( getoption( sysin ) ) ; /* batch mode */
   %if %isblank( &amp;amp;retval. ) %then %let retval = &amp;amp;_SASPROGRAMFILE ; /*interactive mode */
&lt;BR /&gt;   /* next line removes single quotes produced in interactive mode */
   %qsysfunc( compress( &amp;amp;retval., %str(%') ) )
%mend ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416729#M102343</guid>
      <dc:creator>arpitsharma27</dc:creator>
      <dc:date>2017-11-28T15:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting sysin value using RSUBMIT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416745#M102346</link>
      <description>&lt;P&gt;Nothing is happening in what you have shown. That is only the definition of a macro. There is no indication that you have actually executed the macro or any description of running the macro. Also since there is no reference to RSUBMIT it is very hard to&amp;nbsp; even guess what the macro is supposed to do in relation to RSUBMIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To show a result it may be necessary to set options mprint symbolgen; prior to the code. Then show the results with code and messages from the log for the submission involving the macro definition, execution and the code using rsubmit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be better to paste the log results in a code box opened with the {I} icon.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416745#M102346</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-28T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting sysin value using RSUBMIT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416770#M102351</link>
      <description>&lt;P&gt;Sysin gives you the name of a program that was used on the commandline of a SAS batch process. When SAS is started via CONNECT, there is no such program present, so sysin (and _sasprogramfile) will be empty or nonexistent.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-getting-sysin-value-using-RSUBMIT/m-p/416770#M102351</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-28T17:14:06Z</dc:date>
    </item>
  </channel>
</rss>

