<?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: A SAS Bug ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179829#M45884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a known limitation already addressed in SAS Docs.&lt;/P&gt;&lt;P&gt;"&lt;SPAN class="strong" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-weight: bold; color: #000000; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;Note:&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; You cannot change the length of a numeric column with the ALTER TABLE statement. Use the DATA step instead."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473671.htm" title="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473671.htm"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Jun 2014 18:16:29 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2014-06-01T18:16:29Z</dc:date>
    <item>
      <title>A SAS Bug ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179828#M45883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found a problem when I am using SQL. I am trying to modify length of numeric variable. but found nothing changed even the LOG said modify successfully .&lt;/P&gt;&lt;P&gt;Is it a sas bug ?&amp;nbsp; SAS9.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have1;
length id 3;
input name : $2. x&amp;nbsp; $ id ;
cards;
NB sds 1
RN sdft 1
;
run;
proc sql;
alter table work.have1
modify id num(8);
quit;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;653&amp;nbsp; data have1;&lt;/P&gt;&lt;P&gt;654&amp;nbsp; length id 3;&lt;/P&gt;&lt;P&gt;655&amp;nbsp; input name : $2. x&amp;nbsp; $ id ;&lt;/P&gt;&lt;P&gt;656&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.HAVE1 has 2 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;659&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;660&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;661&amp;nbsp; proc sql;&lt;/P&gt;&lt;P&gt;662&amp;nbsp; alter table work.have1&lt;/P&gt;&lt;P&gt;663&amp;nbsp; modify id num(8);&lt;/P&gt;&lt;P&gt;NOTE: Table WORK.HAVE1 has been modified, with 3 columns.&lt;/P&gt;&lt;P&gt;664&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 15:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179828#M45883</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-06-01T15:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: A SAS Bug ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179829#M45884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a known limitation already addressed in SAS Docs.&lt;/P&gt;&lt;P&gt;"&lt;SPAN class="strong" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-weight: bold; color: #000000; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;Note:&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; You cannot change the length of a numeric column with the ALTER TABLE statement. Use the DATA step instead."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473671.htm" title="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473671.htm"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.714285850524902px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 18:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179829#M45884</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-06-01T18:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: A SAS Bug ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179830#M45885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although it is documented that it is not working I have to agree with Xia it is a bug.&lt;BR /&gt;We have the ANSI-Sql that SAS makes the statement it would be implemented. The syntax is documented that way.&lt;BR /&gt;And than claiming it is not working..... buggy approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When working in bigger organizations you will get the segregation of duties. SQL has several area's being spilt up &lt;BR /&gt;DML Data Manipulation Language that is the part that is normally open&lt;/P&gt;&lt;P&gt;DDL Data Definition Language&amp;nbsp; this is the part for the applicative DBA with some parts of MDL&lt;/P&gt;&lt;P&gt;MDL Metadata Definition Language is the higher level concepts where a master/system DBA get his role.&lt;BR /&gt;This segregation can be important but is neglected with SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 05:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179830#M45885</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-02T05:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: A SAS Bug ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179831#M45886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks HaiKuo and Jaap. That is what I am looking for .&lt;/P&gt;&lt;P&gt;But as Jaap said, I think at least LOG should told user numeric variable length can't be changed , not show us modify has been done successfully which would mislead other sas user like me .&lt;/P&gt;&lt;P&gt;But interesting thing is actually SQL can change the length of numeric variable if you just want append them all together by UNION . Thanks RW9 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have1;
length id 3;
input name : $2. x&amp;nbsp; $ id ;
cards;
NB sds 1
RN sdft 1
;
run;
data have2;
input name : $2. x&amp;nbsp; $ id ;
cards;
NB sds 1
RN sdft 1
;
run;
proc sql;
create table want as
 select * from have1 
&amp;nbsp; outer union corr
 select * from have2;
quit;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/A-SAS-Bug/m-p/179831#M45886</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-06-02T07:02:23Z</dc:date>
    </item>
  </channel>
</rss>

