<?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: use IML in the proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/use-IML-in-the-proc-sql/m-p/70822#M20392</link>
    <description>Hello Wes,&lt;BR /&gt;
&lt;BR /&gt;
This code contains formal error: &lt;BR /&gt;
select id,%RollGibbs(dsIn); as mean_x&lt;BR /&gt;
It is necessary to run %RollGibbs(dsIn) in separate datastep and then combine output &lt;BR /&gt;
with zahary.&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
    <pubDate>Mon, 30 May 2011 18:16:46 GMT</pubDate>
    <dc:creator>SPR</dc:creator>
    <dc:date>2011-05-30T18:16:46Z</dc:date>
    <item>
      <title>use IML in the proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-IML-in-the-proc-sql/m-p/70821#M20391</link>
      <description>i have dataset as following &lt;BR /&gt;
&lt;BR /&gt;
now i have a question about usin IML in proc sql as the code below&lt;BR /&gt;
&lt;BR /&gt;
in the code, RollGibbs is the code using IML dsIn is the data read&lt;BR /&gt;
&lt;BR /&gt;
i can not understand why do this procedure?&lt;BR /&gt;
&lt;BR /&gt;
please help me~plz&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data zachary;&lt;BR /&gt;
input id x;&lt;BR /&gt;
cards;&lt;BR /&gt;
1        4&lt;BR /&gt;
1        2&lt;BR /&gt;
1        3&lt;BR /&gt;
2        3&lt;BR /&gt;
2        4&lt;BR /&gt;
2        5&lt;BR /&gt;
2        4&lt;BR /&gt;
3   5&lt;BR /&gt;
3   8&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
%macro zachary(n);&lt;BR /&gt;
        %do i=1 %to &amp;amp;n;&lt;BR /&gt;
                proc sql noprint;&lt;BR /&gt;
                        create table set&amp;amp;i as&lt;BR /&gt;
                        select id,%RollGibbs(dsIn); as mean_x&lt;BR /&gt;
                        from zachary&lt;BR /&gt;
                        where id=&amp;amp;i&lt;BR /&gt;
                        group by id;&lt;BR /&gt;
                quit;&lt;BR /&gt;
        %end;&lt;BR /&gt;
%mend;&lt;BR /&gt;
%zachary(3);</description>
      <pubDate>Sat, 28 May 2011 08:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-IML-in-the-proc-sql/m-p/70821#M20391</guid>
      <dc:creator>Wes</dc:creator>
      <dc:date>2011-05-28T08:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: use IML in the proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-IML-in-the-proc-sql/m-p/70822#M20392</link>
      <description>Hello Wes,&lt;BR /&gt;
&lt;BR /&gt;
This code contains formal error: &lt;BR /&gt;
select id,%RollGibbs(dsIn); as mean_x&lt;BR /&gt;
It is necessary to run %RollGibbs(dsIn) in separate datastep and then combine output &lt;BR /&gt;
with zahary.&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Mon, 30 May 2011 18:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-IML-in-the-proc-sql/m-p/70822#M20392</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-05-30T18:16:46Z</dc:date>
    </item>
  </channel>
</rss>

