<?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: warning: multiple lengths were specified for variable X in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/320111#M70449</link>
    <description>&lt;P&gt;The problem seems to be with the way the datasets(2000-2014) are created. the length ogf variables are set once the first dataset is appeneded to the&amp;nbsp;&lt;SPAN&gt;IIOdat.WIO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please do the proc datset on one or 2 of the dataset and see if the length is same for these variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2016 06:53:14 GMT</pubDate>
    <dc:creator>mnjtrana</dc:creator>
    <dc:date>2016-12-20T06:53:14Z</dc:date>
    <item>
      <title>warning: multiple lengths were specified for variable X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/314671#M68574</link>
      <description>&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;When I try to transform a work.dataset to a sas.dataset I get the following warning:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT color="#00ff00"&gt;WARNING: Multiple lengths were specified for the variable JU by input data set(s). This can cause&lt;/FONT&gt;&lt;DIV class="sasWarning"&gt;&lt;FONT color="#00ff00"&gt;truncation of data.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;&lt;FONT color="#00ff00"&gt;&lt;FONT color="#000000"&gt;The work data set (WIO) consists of 2467 columns and 36960 rows. The library reference is IIOdat.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV class="sasSource"&gt;%macro setlist;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;%do i=2000 %to 2014;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;WIO&amp;amp;i&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;%end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;%mend setlist;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;data IIOdat.WIO;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;set %setlist;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;run;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56 %macro setlist;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 %do i=2000 %to 2014;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 WIO&amp;amp;i&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59 %end;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60 %mend setlist;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 data IIOdat.WIO;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 set %setlist;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable JU by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable OC by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable SK by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable UO by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable ABA by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable AFI by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable AJQ by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable ALU by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable AQC by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable AUG by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable AWO by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable AYS by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BAW by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BFE by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BHI by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BJM by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BNI by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BNM by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BNU by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BSC by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable BWK by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable CHE by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable CJI by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Multiple lengths were specified for the variable CNL by input data set(s). This can cause&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;truncation of data.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2000.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2001.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2002.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2003.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2004.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2005.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2006.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2007.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2008.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2009.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2010.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2011.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2012.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2013.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 2464 observations read from the data set WORK.WIO2014.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set IIODAT.WIO has 36960 observations and 2467 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 48.26 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 20.61 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;What does this mean, and what can I do with it?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;All help is very appreciated.&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Nov 2016 22:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/314671#M68574</guid>
      <dc:creator>biringstad</dc:creator>
      <dc:date>2016-11-27T22:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: warning: multiple lengths were specified for variable X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/320111#M70449</link>
      <description>&lt;P&gt;The problem seems to be with the way the datasets(2000-2014) are created. the length ogf variables are set once the first dataset is appeneded to the&amp;nbsp;&lt;SPAN&gt;IIOdat.WIO.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please do the proc datset on one or 2 of the dataset and see if the length is same for these variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 06:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/320111#M70449</guid>
      <dc:creator>mnjtrana</dc:creator>
      <dc:date>2016-12-20T06:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: warning: multiple lengths were specified for variable X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/320117#M70453</link>
      <description>&lt;P&gt;These errors are shown because of the way the output data set is getting created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the first time when output dataset is created from first input dataset, it sets all variable attributes (their lengths and types) from this dataset. When the same is repeated, it is not matching with the existing information that output data set has set in it's PDV.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an alternative, you can use the LENGTH statement in the beginning for the variables being shown in the log, so that you get a fixed length for those variables in output dataset and then try.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/warning-multiple-lengths-were-specified-for-variable-X/m-p/320117#M70453</guid>
      <dc:creator>PoojaP1</dc:creator>
      <dc:date>2016-12-20T07:34:03Z</dc:date>
    </item>
  </channel>
</rss>

