<?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 Sql and Generation Datasets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52321#M14364</link>
    <description>I would recommend contacting SAS support for further guidance.  I see no tech notes on the support website specifically about generation data sets and PROC SQL interaction.  If PROC SQL is not supported, it should be clearly stated in the SAS DOC under the topic Understanding Generation Data Sets, in the SAS Language Reference: Concepts guide.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Tue, 07 Oct 2008 21:08:26 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2008-10-07T21:08:26Z</dc:date>
    <item>
      <title>Proc Sql and Generation Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52318#M14361</link>
      <description>Per the documentation, "A generation data set is created each time the file is updated".  We use Proc SQL to update and insert into an existing dataset, but are finding generations are not created.  Is there a Proc Sql parameter that needs to be specified to generate the generation datasets?</description>
      <pubDate>Tue, 07 Oct 2008 11:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52318#M14361</guid>
      <dc:creator>AnnieEliz</dc:creator>
      <dc:date>2008-10-07T11:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sql and Generation Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52319#M14362</link>
      <description>Share SAS code related to creating and maintaining your SAS "data file" generation data set, for more meaningful feedback to your post.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 07 Oct 2008 13:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52319#M14362</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-07T13:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sql and Generation Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52320#M14363</link>
      <description>Following displays the type of processing being used.  The last data step was just done to see if generation dataset would be created. It was.&lt;BR /&gt;
&lt;BR /&gt;
data test.sample (genmax=5);&lt;BR /&gt;
  x=4;&lt;BR /&gt;
  y=5;&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  call sleep(60,1);&lt;BR /&gt;
run;&lt;BR /&gt;
Proc SQL;&lt;BR /&gt;
	Update test.sample&lt;BR /&gt;
	Set x=7&lt;BR /&gt;
	Where y=5;&lt;BR /&gt;
&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  call sleep(60,1);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  insert into test.sample&lt;BR /&gt;
    values(10,34)&lt;BR /&gt;
	values(45,33);&lt;BR /&gt;
&lt;BR /&gt;
quit&lt;BR /&gt;
;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  call sleep(60,1);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql; &lt;BR /&gt;
   delete from test.sample&lt;BR /&gt;
   	where x=45;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  call sleep(60,1);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data test.sample;&lt;BR /&gt;
  set test.sample;&lt;BR /&gt;
  if x=10 then y=4;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
After running the above code, the only datasets in the library were &lt;BR /&gt;
Oct  7 15:32 sample#001.sas7bdat&lt;BR /&gt;
Oct  7 15:33 sample.sas7bdat&lt;BR /&gt;
&lt;BR /&gt;
Log indicated records were updated, inserted and deleted.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for help.</description>
      <pubDate>Tue, 07 Oct 2008 20:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52320#M14363</guid>
      <dc:creator>AnnieEliz</dc:creator>
      <dc:date>2008-10-07T20:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sql and Generation Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52321#M14364</link>
      <description>I would recommend contacting SAS support for further guidance.  I see no tech notes on the support website specifically about generation data sets and PROC SQL interaction.  If PROC SQL is not supported, it should be clearly stated in the SAS DOC under the topic Understanding Generation Data Sets, in the SAS Language Reference: Concepts guide.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 07 Oct 2008 21:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Sql-and-Generation-Datasets/m-p/52321#M14364</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-07T21:08:26Z</dc:date>
    </item>
  </channel>
</rss>

