<?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 Length statement for computed column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Length-statement-for-computed-column/m-p/2255#M753</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
How can I define a length for a computed column derived from an excisting variable ??&lt;BR /&gt;
&lt;BR /&gt;
The computed column: substr(nrrelat,1,9)&lt;BR /&gt;
the variable nrrelat has a length of 12&lt;BR /&gt;
the length I need for the computed column should be 9</description>
    <pubDate>Wed, 07 Feb 2007 09:42:39 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-02-07T09:42:39Z</dc:date>
    <item>
      <title>Length statement for computed column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Length-statement-for-computed-column/m-p/2255#M753</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
How can I define a length for a computed column derived from an excisting variable ??&lt;BR /&gt;
&lt;BR /&gt;
The computed column: substr(nrrelat,1,9)&lt;BR /&gt;
the variable nrrelat has a length of 12&lt;BR /&gt;
the length I need for the computed column should be 9</description>
      <pubDate>Wed, 07 Feb 2007 09:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Length-statement-for-computed-column/m-p/2255#M753</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-02-07T09:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Length statement for computed column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Length-statement-for-computed-column/m-p/2256#M754</link>
      <description>I don't think that you can change the length in the click and point interface. But you can surely do so in the generated code : just look for the SQL procedure, then in the select statement, you have&lt;BR /&gt;
&lt;BR /&gt;
substr(nrrelat,1,9) AS computedVarName FORMAT=...&lt;BR /&gt;
&lt;BR /&gt;
Add between the new column name and the FORMAT option the following code :&lt;BR /&gt;
LENGTH=9&lt;BR /&gt;
and re-run the code.&lt;BR /&gt;
&lt;BR /&gt;
That was not really what you were looking for, I think, but I can't think of any non-coding way to do that.&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Olivier</description>
      <pubDate>Wed, 07 Feb 2007 11:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Length-statement-for-computed-column/m-p/2256#M754</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-02-07T11:54:56Z</dc:date>
    </item>
  </channel>
</rss>

