<?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: where is macro parameter resolving? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61667#M13406</link>
    <description>%macro readvmf(dataread);&lt;BR /&gt;
                          ------------&lt;BR /&gt;
&lt;BR /&gt;
They are the parameters you are feeding the macro.&lt;BR /&gt;
%readvmf(indata1);&lt;BR /&gt;
%outvmf(abc&amp;amp;&amp;amp;cff&amp;amp;&amp;amp;veon);&lt;BR /&gt;
&lt;BR /&gt;
So they are "indata1"  and whatever the abc thing resolves to.  You will need to look at the source of the components of CFF and VEON.&lt;BR /&gt;
&lt;BR /&gt;
And by the way, most of the double "&amp;amp;" are not needed in this context.</description>
    <pubDate>Wed, 05 Aug 2009 13:37:00 GMT</pubDate>
    <dc:creator>Flip</dc:creator>
    <dc:date>2009-08-05T13:37:00Z</dc:date>
    <item>
      <title>where is macro parameter resolving?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61666#M13405</link>
      <description>%macro readvmf(dataread);&lt;BR /&gt;
&lt;BR /&gt;
  data abc&amp;amp;&amp;amp;cff&amp;amp;&amp;amp;veon;&lt;BR /&gt;
    infile &lt;U&gt;&lt;I&gt;&lt;B&gt;&amp;amp;dataread&lt;/B&gt;&lt;/I&gt;&lt;/U&gt;  missover lrecl=&amp;amp;reclen firstobs=2;&lt;BR /&gt;
    input  @1        comp                                  $char13.&lt;BR /&gt;
           @14       polno                                 $char10.&lt;BR /&gt;
           @24       rectyp                                $char2.&lt;BR /&gt;
           @26       lob                                   $char1.&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
 %macro outvmf(dataout);&lt;BR /&gt;
  data &amp;amp;&amp;amp;outdata (compress=yes);&lt;BR /&gt;
    set &lt;U&gt;&lt;I&gt;&lt;B&gt;&amp;amp;dataout&lt;/B&gt;&lt;/I&gt;&lt;/U&gt;;&lt;BR /&gt;
    label  comp     ='Company ';&lt;BR /&gt;
    label  company  ='Code';&lt;BR /&gt;
    label  polno    ='Number';&lt;BR /&gt;
    label  rectyp   ='Type';&lt;BR /&gt;
   &lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%macro loadvmf;&lt;BR /&gt;
  %if &amp;amp;load = 1 %then %do;&lt;BR /&gt;
    %readvmf(indata1);&lt;BR /&gt;
    %outvmf(abc&amp;amp;&amp;amp;cff&amp;amp;&amp;amp;veon);&lt;BR /&gt;
    %end;&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
%loadvmf;&lt;BR /&gt;
&lt;BR /&gt;
I don’t understand where dataread and dataout (see text in &lt;U&gt;&lt;I&gt;&lt;B&gt;bold,italic,underlined&lt;/B&gt;&lt;/I&gt;&lt;/U&gt;) are being created. There is nowhere that these parameters are being given a value. Can you please explain me this?</description>
      <pubDate>Wed, 05 Aug 2009 13:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61666#M13405</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-05T13:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: where is macro parameter resolving?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61667#M13406</link>
      <description>%macro readvmf(dataread);&lt;BR /&gt;
                          ------------&lt;BR /&gt;
&lt;BR /&gt;
They are the parameters you are feeding the macro.&lt;BR /&gt;
%readvmf(indata1);&lt;BR /&gt;
%outvmf(abc&amp;amp;&amp;amp;cff&amp;amp;&amp;amp;veon);&lt;BR /&gt;
&lt;BR /&gt;
So they are "indata1"  and whatever the abc thing resolves to.  You will need to look at the source of the components of CFF and VEON.&lt;BR /&gt;
&lt;BR /&gt;
And by the way, most of the double "&amp;amp;" are not needed in this context.</description>
      <pubDate>Wed, 05 Aug 2009 13:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61667#M13406</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-08-05T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: where is macro parameter resolving?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61668#M13407</link>
      <description>Thanks a lot. Got it.</description>
      <pubDate>Wed, 05 Aug 2009 13:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/where-is-macro-parameter-resolving/m-p/61668#M13407</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-05T13:44:23Z</dc:date>
    </item>
  </channel>
</rss>

