<?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: Proc IML Exercise in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290217#M2933</link>
    <description>&lt;P&gt;Thanks, this works now!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2016 15:13:21 GMT</pubDate>
    <dc:creator>sykim</dc:creator>
    <dc:date>2016-08-08T15:13:21Z</dc:date>
    <item>
      <title>Proc IML Exercise</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290074#M2931</link>
      <description>&lt;DIV&gt;I am trying to do matrix operations on SAS using a dataset I call 'ao' which has 7 variables and which I have attached. As an experiment, I am doing a scalar operation on the data I read in as a matrix, and I want to output it back out as a sas dataset using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;use aoy;&lt;BR /&gt;read all var _ALL_ into Gamma[colname=varNames];&lt;BR /&gt;y=2*Gamma;&lt;BR /&gt;close ao;&lt;BR /&gt;create test from y[colname={"ind2" "MRP" "SMB" "HML" "RMW" "CMA" "RF"}];;&lt;BR /&gt;append from test;&lt;BR /&gt;close test;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;For some reason SAS gives me the error message:"Number of columns in test does not match with the number of variables in the data set". I don't see how this is posssible because the dataset has exactly 7 variables. Please let me know if there is anything wrong with the code. I have attached the dataset for convenience.&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2016 04:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290074#M2931</guid>
      <dc:creator>sykim</dc:creator>
      <dc:date>2016-08-08T04:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML Exercise</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290108#M2932</link>
      <description>&lt;PRE&gt;
Your code is not right.


proc import datafile='/folders/myfolders/aoy.xlsx' out=aoy dbms=xlsx replace;run;
proc iml;
use aoy;
read all var _ALL_ into Gamma[c=vnames];
close;
y=2#Gamma;
create test from y[colname=vnames];
append from y;
close test;
quit;

&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2016 08:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290108#M2932</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-08T08:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML Exercise</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290217#M2933</link>
      <description>&lt;P&gt;Thanks, this works now!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 15:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-Exercise/m-p/290217#M2933</guid>
      <dc:creator>sykim</dc:creator>
      <dc:date>2016-08-08T15:13:21Z</dc:date>
    </item>
  </channel>
</rss>

