<?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: Auto increment option in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156275#M2758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, depends on what you mean by "automatic", or "standard"...&lt;/P&gt;&lt;P&gt;There is no real good options/transformation to do this as simple as you describes, and in a efficient way. When this requirement emerge, I usually see three options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Challenge the requirement. What is the the requirement? Mostly, this is requirement from DBA:s who is not involved in DW design principles.&lt;/LI&gt;&lt;LI&gt;See if this functionality can be obtained in the target database as a automatic constraint.&lt;/LI&gt;&lt;LI&gt;Create you own transformation, that just does select max(increment_col) into: max_increment on the target table (an index is required to make this fast), and then just table scans your input and assign your increment with _n_ + max_increment.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 08:46:07 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-05-13T08:46:07Z</dc:date>
    <item>
      <title>Auto increment option</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156274#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any standard option in SAS DI Studio to create or assign auto increment numbers column in the target table.&lt;/P&gt;&lt;P&gt;I am merging two tables using Append Transformation and need After or In Append Trans.&lt;/P&gt;&lt;P&gt;Please guide me if there is any possibility.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Dani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156274#M2757</guid>
      <dc:creator>danimian</dc:creator>
      <dc:date>2014-05-13T08:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Auto increment option</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156275#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, depends on what you mean by "automatic", or "standard"...&lt;/P&gt;&lt;P&gt;There is no real good options/transformation to do this as simple as you describes, and in a efficient way. When this requirement emerge, I usually see three options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Challenge the requirement. What is the the requirement? Mostly, this is requirement from DBA:s who is not involved in DW design principles.&lt;/LI&gt;&lt;LI&gt;See if this functionality can be obtained in the target database as a automatic constraint.&lt;/LI&gt;&lt;LI&gt;Create you own transformation, that just does select max(increment_col) into: max_increment on the target table (an index is required to make this fast), and then just table scans your input and assign your increment with _n_ + max_increment.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 08:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156275#M2758</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-05-13T08:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Auto increment option</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156276#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is no direct / good option in DI Studio to do this like Load Time Column in Table Loader Transformation. &lt;BR /&gt;Just managed it with User Written Code Transformation.&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 10:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Auto-increment-option/m-p/156276#M2759</guid>
      <dc:creator>danimian</dc:creator>
      <dc:date>2014-05-13T10:02:11Z</dc:date>
    </item>
  </channel>
</rss>

