<?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 macro variables  and proc inside module definition in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/macro-variables-and-proc-inside-module-definition/m-p/33796#M164</link>
    <description>I have two questions: &lt;BR /&gt;
1. How is it possible to define macro variables inside implus language? Why &amp;amp;macro_var_name is not referenced in implus language if %let is put inside submit/endsubmit statements?&lt;BR /&gt;
&lt;BR /&gt;
submit;&lt;BR /&gt;
	%let pippo={1 2, 3 4};&lt;BR /&gt;
endsubmit;&lt;BR /&gt;
x=&amp;amp;pippo; &amp;lt;--error&lt;BR /&gt;
&lt;BR /&gt;
2. Is it possible to include a proc of SAS STAT inside a module?For example I need to insert proc corr inside a module for defining objective function of a genetic algorithm.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Angela</description>
    <pubDate>Tue, 22 Dec 2009 16:53:57 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-12-22T16:53:57Z</dc:date>
    <item>
      <title>macro variables  and proc inside module definition</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/macro-variables-and-proc-inside-module-definition/m-p/33796#M164</link>
      <description>I have two questions: &lt;BR /&gt;
1. How is it possible to define macro variables inside implus language? Why &amp;amp;macro_var_name is not referenced in implus language if %let is put inside submit/endsubmit statements?&lt;BR /&gt;
&lt;BR /&gt;
submit;&lt;BR /&gt;
	%let pippo={1 2, 3 4};&lt;BR /&gt;
endsubmit;&lt;BR /&gt;
x=&amp;amp;pippo; &amp;lt;--error&lt;BR /&gt;
&lt;BR /&gt;
2. Is it possible to include a proc of SAS STAT inside a module?For example I need to insert proc corr inside a module for defining objective function of a genetic algorithm.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Angela</description>
      <pubDate>Tue, 22 Dec 2009 16:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/macro-variables-and-proc-inside-module-definition/m-p/33796#M164</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-22T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: macro variables  and proc inside module definition</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/macro-variables-and-proc-inside-module-definition/m-p/33797#M165</link>
      <description>In answer to your questions:&lt;BR /&gt;
&lt;BR /&gt;
(1) IMLPlus does not support SAS macro variables except inside submit blocks. However, you can use the Base SAS functions symgetn and symgetc. For example:&lt;BR /&gt;
&lt;BR /&gt;
    submit;&lt;BR /&gt;
    %let xyz = 123;&lt;BR /&gt;
    endsubmit;&lt;BR /&gt;
&lt;BR /&gt;
    x = symgetn( "xyz" );&lt;BR /&gt;
    print x;&lt;BR /&gt;
&lt;BR /&gt;
(2) Yes, you can call any SAS procedure (except PROC IML) from inside a submit block that is itself inside an IML module.</description>
      <pubDate>Wed, 23 Dec 2009 15:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/macro-variables-and-proc-inside-module-definition/m-p/33797#M165</guid>
      <dc:creator>Simon_sas</dc:creator>
      <dc:date>2009-12-23T15:42:42Z</dc:date>
    </item>
  </channel>
</rss>

