<?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: create varnames in proc iml in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/create-varnames-in-proc-iml/m-p/374112#M3579</link>
    <description>&lt;P&gt;Just concatenate your name vectors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc iml;&lt;BR /&gt;c = j(24, 120, 0);&lt;BR /&gt;varNames = ("A0" : "A59") || ("B0" : "B59");&lt;BR /&gt;create data from c [colname = varNames];&lt;BR /&gt;append from c;&lt;BR /&gt;close data;&lt;BR /&gt;quit;&lt;BR /&gt; &lt;BR /&gt;proc contents varnum; ods select position; run;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 22:26:16 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-07-07T22:26:16Z</dc:date>
    <item>
      <title>create varnames in proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/create-varnames-in-proc-iml/m-p/374085#M3578</link>
      <description>&lt;P&gt;Hi all -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a matrix with 24 rows and 120 columns, the ideal dataset looks like this:&lt;/P&gt;&lt;P&gt;A0 A1 A2 A3 &amp;nbsp; ....A59 B0 B1 B2 B3 ... B59&lt;/P&gt;&lt;P&gt;0 &amp;nbsp; 0 &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; 0 &amp;nbsp; 0 &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;RIght now cannot figure out how to name the columns, my code is attached here (this code does not work):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
c = j(24, 120, 0);
varNames = "A0" : "A59"; 
varNames = "B0" : "B59";
create data from c [colname = varNames];
append from c;
close data;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Create A columns and B columns and merge them together might help but eventually I want to create a matrix from A to Z, which has 1440 columns, so that approach might not be good enough.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea? Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 19:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/create-varnames-in-proc-iml/m-p/374085#M3578</guid>
      <dc:creator>panda</dc:creator>
      <dc:date>2017-07-07T19:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: create varnames in proc iml</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/create-varnames-in-proc-iml/m-p/374112#M3579</link>
      <description>&lt;P&gt;Just concatenate your name vectors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc iml;&lt;BR /&gt;c = j(24, 120, 0);&lt;BR /&gt;varNames = ("A0" : "A59") || ("B0" : "B59");&lt;BR /&gt;create data from c [colname = varNames];&lt;BR /&gt;append from c;&lt;BR /&gt;close data;&lt;BR /&gt;quit;&lt;BR /&gt; &lt;BR /&gt;proc contents varnum; ods select position; run;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 22:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/create-varnames-in-proc-iml/m-p/374112#M3579</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-07-07T22:26:16Z</dc:date>
    </item>
  </channel>
</rss>

