<?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: Is it advisable to write macros within RSUBMIT &amp;amp; ENDRSUBMIT? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807540#M318405</link>
    <description>Hi Tom,&lt;BR /&gt;&lt;BR /&gt;Thank you for your quick response!&lt;BR /&gt;I will try to follow, what you have suggested.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Apr 2022 04:18:11 GMT</pubDate>
    <dc:creator>Santt0sh</dc:creator>
    <dc:date>2022-04-13T04:18:11Z</dc:date>
    <item>
      <title>Is it advisable to write macros within RSUBMIT &amp; ENDRSUBMIT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807533#M318399</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Could you please advise me, if Macros can be written within RSUBMIT and ENDRSUBMIT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rsubmit;&lt;/P&gt;&lt;P&gt;%MACRO SRTDT(BGNDTE=);&lt;/P&gt;&lt;P&gt;%do i = 1 %to 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;% SRTDT(BGNDTE=xxxxxxx);&lt;/P&gt;&lt;P&gt;ENDRSUBMIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 02:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807533#M318399</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2022-04-13T02:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it advisable to write macros within RSUBMIT &amp; ENDRSUBMIT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807538#M318404</link>
      <description>&lt;P&gt;You can, but be sure to test them.&amp;nbsp; In the past I have had issues with the chunking used to send the blocks of code from the local to the remote machine causing issues for the parsing required to compile macros.&amp;nbsp; In one case just inserting a couple of extra characters into a comment caused the macro to work again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead compile the macro on the remote machine from a file on the remove machine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
%include 'mymacro.sas' ;
%mymacro()
endrsubmit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the file only lives on the local machine you can use PROC UPLOAD to copy it to the remote machine first.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
filename mymacro temp;
proc upload infile='mymacro.sas' outfile=mymacro; 
run;
%include mymacro;
%mymacro()
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Apr 2022 03:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807538#M318404</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-13T03:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it advisable to write macros within RSUBMIT &amp; ENDRSUBMIT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807540#M318405</link>
      <description>Hi Tom,&lt;BR /&gt;&lt;BR /&gt;Thank you for your quick response!&lt;BR /&gt;I will try to follow, what you have suggested.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2022 04:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-advisable-to-write-macros-within-RSUBMIT-amp-ENDRSUBMIT/m-p/807540#M318405</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2022-04-13T04:18:11Z</dc:date>
    </item>
  </channel>
</rss>

