<?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: set statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60636#M13147</link>
    <description>INDSNAME= !!!&lt;BR /&gt;
&lt;BR /&gt;
Why didn't you tell me earlier! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;
&lt;BR /&gt;
It's only 2 weeks ago that I ended up doing some complicated coding because I missed this 9.2 enhancement to the set statement.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for this info Peter. That will come in very handy (also: I should now amend my code...)&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
Patrick</description>
    <pubDate>Sun, 21 Feb 2010 02:19:48 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2010-02-21T02:19:48Z</dc:date>
    <item>
      <title>set statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60632#M13143</link>
      <description>Dear All,&lt;BR /&gt;
&lt;BR /&gt;
I'm having nearly 100 sas datasets with naming convention as sample1, sample2, sample3, etc...Variables are common in all the SAS datasets&lt;BR /&gt;
how to combine all this ?</description>
      <pubDate>Sat, 20 Feb 2010 09:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60632#M13143</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-20T09:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: set statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60633#M13144</link>
      <description>data all;&lt;BR /&gt;
set sample1 - sample&lt;N&gt;;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
or as data step view avoiding to duplicate data:&lt;BR /&gt;
&lt;BR /&gt;
data all /view=all;&lt;BR /&gt;
set sample1 - sample&lt;N&gt;;&lt;BR /&gt;
run;&lt;/N&gt;&lt;/N&gt;</description>
      <pubDate>Sat, 20 Feb 2010 13:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60633#M13144</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-02-20T13:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: set statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60634#M13145</link>
      <description>Patrick offers the best solution which is valid since SAS9.2. Before this release we needed to list each of the datasets on a set statement. &lt;BR /&gt;
Another good feature of SET statement added in SAS9.2 is the option INDSNAME=.&lt;BR /&gt;
This names a variable that indicates from which of the datasets on the statement the current observation has come.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Sat, 20 Feb 2010 16:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60634#M13145</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-02-20T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: set statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60635#M13146</link>
      <description>Also, new with SAS 9.2, the SET statement can specify a file-prefix (stem), such as:&lt;BR /&gt;
&lt;BR /&gt;
SET XXXYYY:  ;&lt;BR /&gt;
&lt;BR /&gt;
Very helpful with avoiding the need to code NODSNFERR when you are not sure how many "cycles"  or "versions" of a given file are available to select.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 20 Feb 2010 18:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60635#M13146</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-20T18:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: set statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60636#M13147</link>
      <description>INDSNAME= !!!&lt;BR /&gt;
&lt;BR /&gt;
Why didn't you tell me earlier! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;
&lt;BR /&gt;
It's only 2 weeks ago that I ended up doing some complicated coding because I missed this 9.2 enhancement to the set statement.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for this info Peter. That will come in very handy (also: I should now amend my code...)&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
Patrick</description>
      <pubDate>Sun, 21 Feb 2010 02:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60636#M13147</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-02-21T02:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: set statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60637#M13148</link>
      <description>Quite a lot of great and interesting new features, thanks for the info!&lt;BR /&gt;
&lt;BR /&gt;
Since I'm still "stuck" at work with the 9.1.3, here's the alternative:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
select catx('.',LIBNAME,MEMNAME) into: TABS separated by ' ' from DICTIONARY.TABLES&lt;BR /&gt;
where LIBNAME='&lt;YOUR-LIB&gt;' and MEMNAME like '&lt;YOUR-PREFIX&gt;%';&lt;BR /&gt;
quit;&lt;BR /&gt;
%put &amp;amp;TABS;&lt;BR /&gt;
&lt;BR /&gt;
data ALL;&lt;BR /&gt;
set &amp;amp;TABS;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/YOUR-PREFIX&gt;&lt;/YOUR-LIB&gt;</description>
      <pubDate>Wed, 24 Feb 2010 09:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/set-statement/m-p/60637#M13148</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2010-02-24T09:38:11Z</dc:date>
    </item>
  </channel>
</rss>

