<?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 (GENNUM= )  Data Set Option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/GENNUM-Data-Set-Option/m-p/20405#M3196</link>
    <description>I am running SAS v9.1.3 SP4 on Windows XP operating system.   In our data mart there are Generational Datasets for each monthend file, ie. &lt;BR /&gt;
MONTHEND,&lt;BR /&gt;
MONTHEND#1&lt;BR /&gt;
MONTHEND#2&lt;BR /&gt;
MONTHEND#3&lt;BR /&gt;
&lt;BR /&gt;
All the SAS documentation I could fined only talks about creating and maintaining generational datasets, and how to do a PROC PRINT on a specific generation number, but no instructions on how to reference and retrieve data from a specific generation number, in a data step.&lt;BR /&gt;
I want to read data from MONTHEND#2, to create a subset of data, based on a where statement.  Is this data step, below, the proper way to do that and is the syntax correct ?&lt;BR /&gt;
&lt;BR /&gt;
DATA newfile;&lt;BR /&gt;
    set MONTHEND (GENNUM=2) ;&lt;BR /&gt;
where account_numbers gt "1234" ;&lt;BR /&gt;
run;</description>
    <pubDate>Wed, 02 Mar 2011 17:37:56 GMT</pubDate>
    <dc:creator>chandler</dc:creator>
    <dc:date>2011-03-02T17:37:56Z</dc:date>
    <item>
      <title>(GENNUM= )  Data Set Option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENNUM-Data-Set-Option/m-p/20405#M3196</link>
      <description>I am running SAS v9.1.3 SP4 on Windows XP operating system.   In our data mart there are Generational Datasets for each monthend file, ie. &lt;BR /&gt;
MONTHEND,&lt;BR /&gt;
MONTHEND#1&lt;BR /&gt;
MONTHEND#2&lt;BR /&gt;
MONTHEND#3&lt;BR /&gt;
&lt;BR /&gt;
All the SAS documentation I could fined only talks about creating and maintaining generational datasets, and how to do a PROC PRINT on a specific generation number, but no instructions on how to reference and retrieve data from a specific generation number, in a data step.&lt;BR /&gt;
I want to read data from MONTHEND#2, to create a subset of data, based on a where statement.  Is this data step, below, the proper way to do that and is the syntax correct ?&lt;BR /&gt;
&lt;BR /&gt;
DATA newfile;&lt;BR /&gt;
    set MONTHEND (GENNUM=2) ;&lt;BR /&gt;
where account_numbers gt "1234" ;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 02 Mar 2011 17:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENNUM-Data-Set-Option/m-p/20405#M3196</guid>
      <dc:creator>chandler</dc:creator>
      <dc:date>2011-03-02T17:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: (GENNUM= )  Data Set Option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/GENNUM-Data-Set-Option/m-p/20406#M3197</link>
      <description>Hello Chandler,&lt;BR /&gt;
&lt;BR /&gt;
I do not see any problems with this syntax. The only thing I should mention that if account numbers contain both letters and digits then using GT operator could depend on sorting seqiences and have to be used with caution.&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Thu, 03 Mar 2011 19:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/GENNUM-Data-Set-Option/m-p/20406#M3197</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-03-03T19:02:03Z</dc:date>
    </item>
  </channel>
</rss>

