<?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: How do I store the output of proc iml statement in a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718091#M222160</link>
    <description>&lt;P&gt;Use the CREATE statement.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=imlug&amp;amp;docsetTarget=imlug_langref_sect019.htm&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://support.sas.com/resources/papers/proceedings13/144-2013.pdf" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please use the correct icon so your code if formatted properly.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 01:48:40 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-02-10T01:48:40Z</dc:date>
    <item>
      <title>How do I store the output of proc iml statement in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718067#M222147</link>
      <description>&lt;P&gt;How do I store the proc iml print statement output in a data set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Obs;&lt;BR /&gt;do x=0 to 2;&lt;BR /&gt;do y=0 to 2;&lt;BR /&gt;do z = 0 to 2;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;use Obs;&lt;BR /&gt;read all var _NUM_ into X;&lt;BR /&gt;close Obs;&lt;BR /&gt;&lt;BR /&gt;D = distance(X);&lt;BR /&gt;print (D[1:4, 1:4])[format=8.6 c=("Dist1":"Dist4")];&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 23:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718067#M222147</guid>
      <dc:creator>manojkuchi</dc:creator>
      <dc:date>2021-02-09T23:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I store the output of proc iml statement in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718091#M222160</link>
      <description>&lt;P&gt;Use the CREATE statement.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=imlug&amp;amp;docsetTarget=imlug_langref_sect019.htm&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://support.sas.com/resources/papers/proceedings13/144-2013.pdf" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please use the correct icon so your code if formatted properly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 01:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718091#M222160</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-10T01:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I store the output of proc iml statement in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718198#M222221</link>
      <description>&lt;P&gt;Why not post it at IML forum ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data Obs;
do x=0 to 2;
do y=0 to 2;
do z = 0 to 2;
output;
end;
end;
end;
run;

proc iml;
use Obs;
read all var _NUM_ into X;
close Obs;

D = distance(X);
DD=D[1:4, 1:4];
mattrib DD format=8.6 c=("Dist1":"Dist4");

create want from DD;
append from DD;
close;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2021 11:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-store-the-output-of-proc-iml-statement-in-a-dataset/m-p/718198#M222221</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-02-10T11:59:00Z</dc:date>
    </item>
  </channel>
</rss>

