<?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 outtput file in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327558#M3246</link>
    <description>&lt;P&gt;Thanks so much Rick!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 22:00:34 GMT</pubDate>
    <dc:creator>Newph</dc:creator>
    <dc:date>2017-01-25T22:00:34Z</dc:date>
    <item>
      <title>Proc IML outtput file</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327544#M3244</link>
      <description>&lt;P&gt;I am trying to modify a set of code so it can produce varnames with 32 characters, currently its only giving me 20 characters...any help would be greatly appreciated...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml; reset noprint; use params;&lt;BR /&gt;read all var{variable} into varnames;&lt;BR /&gt;read all var _all_ into b;&lt;BR /&gt;use Cov1; read all var _num_ into x1;&lt;BR /&gt;use Cov2; read all var _num_ into x2;&lt;BR /&gt;use CovI; read all var _num_ into x3;&lt;/P&gt;&lt;P&gt;cov = x1 + x2 - x3; /* Calculate covariance matrix */&lt;BR /&gt;dfe = b[1,3]; stdb = sqrt(vecdiag(cov)); beta = b[,1]; z = beta/stdb; prob = 1-probf(z#z,1,dfe); /* Calc stats */&lt;BR /&gt;&lt;BR /&gt;print,"Parameter estimates",,varnames[format=$32.] beta[format=8.4] stdb[format=8.4] z[format=8.4] prob[format=8.4];&lt;/P&gt;&lt;P&gt;conc = beta || stdb || z || prob;&lt;BR /&gt;cname = {"estimates" "stderror" "zstat" "pvalue"};&lt;BR /&gt;create &amp;amp;outdataset from conc [ colname=cname ];&lt;BR /&gt;append from conc;&lt;/P&gt;&lt;P&gt;conc = varnames;&lt;BR /&gt;cname = {"varnames"};&lt;BR /&gt;create names from conc [ colname=cname ];&lt;BR /&gt;append from conc;&lt;/P&gt;&lt;P&gt;data &amp;amp;outdataset; merge names &amp;amp;outdataset; run;&lt;BR /&gt;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 21:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327544#M3244</guid>
      <dc:creator>Newph</dc:creator>
      <dc:date>2017-01-25T21:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML outtput file</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327552#M3245</link>
      <description>&lt;P&gt;Run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=params; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to view the length of the 'variable' variable. In your IML program, the statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;read all var{variable} into varnames;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;means that nleng(varnames) be equal to the length of the 'variable' variable in the&amp;nbsp;PARAMS data set.&lt;/P&gt;
&lt;P&gt;If that is the problem, you can use the LENGTH&amp;nbsp;statement in a DATA set to make the variable wider.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have control over the input, you can always resize the CONC variable by using the PUTC function to apply the $32 format, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;conc = putc(varnames, "$32.");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 21:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327552#M3245</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-01-25T21:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc IML outtput file</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327558#M3246</link>
      <description>&lt;P&gt;Thanks so much Rick!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Proc-IML-outtput-file/m-p/327558#M3246</guid>
      <dc:creator>Newph</dc:creator>
      <dc:date>2017-01-25T22:00:34Z</dc:date>
    </item>
  </channel>
</rss>

