<?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 Warning message - Variable length in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55435#M5829</link>
    <description>Hi: I get this warning message when I attempt to change a variable length. Any idea how to get rid off this message?&lt;BR /&gt;
&lt;BR /&gt;
data stdlabnames;&lt;BR /&gt;
148         length standard_lab_type $25 standard_lab_name $50 lbtestid $30;&lt;BR /&gt;
149         format _all_; informat _all_;&lt;BR /&gt;
150        &lt;BR /&gt;
151         set rawdata.standard_lab_names;&lt;BR /&gt;
NOTE: Data file RAWDATA.STANDARD_LAB_NAMES.DATA is in a format that is native to another host, or the file &lt;BR /&gt;
      encoding does not match the session encoding. Cross Environment Data Access will be used, which might &lt;BR /&gt;
      require additional CPU resources and might reduce performance.&lt;BR /&gt;
&amp;#12;                                                The SAS System&lt;BR /&gt;
&lt;BR /&gt;
152        &lt;BR /&gt;
153         keep standard_lab_type standard_lab_name lbtestid restype;&lt;BR /&gt;
154        &lt;BR /&gt;
155        run;&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Multiple lengths were specified for the variable STANDARD_LAB_TYPE by input data set(s). This may &lt;BR /&gt;
         cause truncation of data.&lt;BR /&gt;
WARNING: Multiple lengths were specified for the variable STANDARD_LAB_NAME by input data set(s). This may &lt;BR /&gt;
         cause truncation of data.&lt;BR /&gt;
WARNING: Multiple lengths were specified for the variable LBTESTID by input data set(s). This may cause &lt;BR /&gt;
         truncation of data.</description>
    <pubDate>Mon, 27 Dec 2010 22:09:43 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-12-27T22:09:43Z</dc:date>
    <item>
      <title>Warning message - Variable length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55435#M5829</link>
      <description>Hi: I get this warning message when I attempt to change a variable length. Any idea how to get rid off this message?&lt;BR /&gt;
&lt;BR /&gt;
data stdlabnames;&lt;BR /&gt;
148         length standard_lab_type $25 standard_lab_name $50 lbtestid $30;&lt;BR /&gt;
149         format _all_; informat _all_;&lt;BR /&gt;
150        &lt;BR /&gt;
151         set rawdata.standard_lab_names;&lt;BR /&gt;
NOTE: Data file RAWDATA.STANDARD_LAB_NAMES.DATA is in a format that is native to another host, or the file &lt;BR /&gt;
      encoding does not match the session encoding. Cross Environment Data Access will be used, which might &lt;BR /&gt;
      require additional CPU resources and might reduce performance.&lt;BR /&gt;
&amp;#12;                                                The SAS System&lt;BR /&gt;
&lt;BR /&gt;
152        &lt;BR /&gt;
153         keep standard_lab_type standard_lab_name lbtestid restype;&lt;BR /&gt;
154        &lt;BR /&gt;
155        run;&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Multiple lengths were specified for the variable STANDARD_LAB_TYPE by input data set(s). This may &lt;BR /&gt;
         cause truncation of data.&lt;BR /&gt;
WARNING: Multiple lengths were specified for the variable STANDARD_LAB_NAME by input data set(s). This may &lt;BR /&gt;
         cause truncation of data.&lt;BR /&gt;
WARNING: Multiple lengths were specified for the variable LBTESTID by input data set(s). This may cause &lt;BR /&gt;
         truncation of data.</description>
      <pubDate>Mon, 27 Dec 2010 22:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55435#M5829</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-27T22:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message - Variable length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55436#M5830</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
SAS nicely tells you that your new variable lengths are shorter than the ones in the source data set. So the warning as such is appropriate.&lt;BR /&gt;
&lt;BR /&gt;
I wouldn't now how to suppress such a warning - but you could of course change the lengths in a post processing step, i.e.&lt;BR /&gt;
&lt;BR /&gt;
data stdlabnames;&lt;BR /&gt;
  format _all_; informat _all_;&lt;BR /&gt;
  set rawdata.standard_lab_names (keep=standard_lab_type standard_lab_name lbtestid restype);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  alter table stdlabnames&lt;BR /&gt;
  modify&lt;BR /&gt;
    standard_lab_type char(25) &lt;BR /&gt;
   ,standard_lab_name char(50) &lt;BR /&gt;
   ,lbtestid char(30)&lt;BR /&gt;
   ;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Another way would be to just rename the variables when you read them (a rename as part of the set statement) and then define the output vars the way you want them and assign the renamed vars to the output vars.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Patrick

Message was edited by: Patrick</description>
      <pubDate>Tue, 28 Dec 2010 00:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55436#M5830</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-12-28T00:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message - Variable length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55437#M5831</link>
      <description>There is an option that globally turns this warning off, can't remember of the top of my head the exact syntax... try searching SAS site for "Length &amp;amp; Warning"&lt;BR /&gt;
&lt;BR /&gt;
Barry</description>
      <pubDate>Tue, 28 Dec 2010 03:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55437#M5831</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2010-12-28T03:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message - Variable length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55438#M5832</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You can try this system option to turn off warning message.&lt;BR /&gt;
options varlenchk=nowarn;</description>
      <pubDate>Tue, 28 Dec 2010 09:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55438#M5832</guid>
      <dc:creator>MJyothi</dc:creator>
      <dc:date>2010-12-28T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message - Variable length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55439#M5833</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You can try this system option to turn off warning message.&lt;BR /&gt;
options varlenchk=nowarn;</description>
      <pubDate>Tue, 28 Dec 2010 09:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55439#M5833</guid>
      <dc:creator>MJyothi</dc:creator>
      <dc:date>2010-12-28T09:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message - Variable length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55440#M5834</link>
      <description>Thank you all.</description>
      <pubDate>Tue, 28 Dec 2010 17:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Warning-message-Variable-length/m-p/55440#M5834</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-28T17:50:43Z</dc:date>
    </item>
  </channel>
</rss>

