<?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: transfer data from iml using macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787071#M251404</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml ;
start times( a , b);
x= a*b ;
call symputx('y', x);
print( x ) ;

finish times;
call times(4,5) ;
run;


%put ----------&amp;amp;y ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Dec 2021 08:25:09 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2021-12-22T08:25:09Z</dc:date>
    <item>
      <title>transfer data from iml using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787053#M251397</link>
      <description>&lt;P&gt;hows it going?&amp;nbsp; just started learning iml and was wondering if there is a way to transfer data without having to send the matrix to a dataset .&amp;nbsp; something along the lines of using a macro&amp;nbsp; like below .&amp;nbsp; thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc iml ;&lt;BR /&gt;start times( a , b);&lt;BR /&gt;x= a*b ;&lt;BR /&gt;%let y = x; *totally doesnt work;&lt;BR /&gt;print( x ) ;&lt;/P&gt;&lt;P&gt;finish times;&lt;BR /&gt;call times(4,5) ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%put ----------&amp;amp;y ;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 04:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787053#M251397</guid>
      <dc:creator>thryce85</dc:creator>
      <dc:date>2021-12-22T04:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: transfer data from iml using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787055#M251399</link>
      <description>What do you mean by 'transfer data'?</description>
      <pubDate>Wed, 22 Dec 2021 04:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787055#M251399</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-22T04:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: transfer data from iml using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787056#M251400</link>
      <description>&lt;P&gt;You can use the same function to assign values to macro variables in IML that you would use in a DATA step.&amp;nbsp; CALL SYMPUTX().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2011/10/17/does-symput-work-in-iml.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2011/10/17/does-symput-work-in-iml.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 04:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787056#M251400</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-22T04:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: transfer data from iml using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787071#M251404</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml ;
start times( a , b);
x= a*b ;
call symputx('y', x);
print( x ) ;

finish times;
call times(4,5) ;
run;


%put ----------&amp;amp;y ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 08:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787071#M251404</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-12-22T08:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: transfer data from iml using macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787078#M251409</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/363904"&gt;@thryce85&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hows it going?&amp;nbsp; just started learning iml and was wondering if there is a way to transfer data without having to send the matrix to a dataset .&amp;nbsp; something along the lines of using a macro&amp;nbsp; like below .&amp;nbsp; thanks !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc iml ;&lt;BR /&gt;start times( a , b);&lt;BR /&gt;x= a*b ;&lt;BR /&gt;%let y = x; *totally doesnt work;&lt;BR /&gt;print( x ) ;&lt;/P&gt;
&lt;P&gt;finish times;&lt;BR /&gt;call times(4,5) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%put ----------&amp;amp;y ;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why would you want to switch to macro variables when DATA sets were designed to contain data for later use in SAS? I can see if there's only one value computed by IML that you want to transfer, a macro variable is a pretty simple way. If there is lots of data you want to transfer, macro variables are a very poor choice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you talk about macros, but you do not have macros, you have macro variables. Just for your future understanding and clearness of communications, macros and macro variables are two different things, and macro variables (which you have here) should not be referred to as macros.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 10:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/transfer-data-from-iml-using-macros/m-p/787078#M251409</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-22T10:56:18Z</dc:date>
    </item>
  </channel>
</rss>

