<?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: Variable length change in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349195#M23026</link>
    <description>&lt;P&gt;Look at the attributes of "name". It may have a shorter display format than the defined length.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 17:02:46 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-04-11T17:02:46Z</dc:date>
    <item>
      <title>Variable length change</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349194#M23025</link>
      <description>&lt;P&gt;When we create a dataset from a other, sobre characteres variables "change" its length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data new_dataset;&lt;/P&gt;
&lt;P&gt;set old_dataset;&lt;/P&gt;
&lt;P&gt;keep email name;&lt;/P&gt;
&lt;P&gt;where control = 0;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when we see the results, the name "Alexandre" changes to "Alexandr", but when we double click we can see a hidden "e".&lt;/P&gt;
&lt;P&gt;The same happens to email variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that when I export to a TXT file, the name exports as "Alexandr".&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 16:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349194#M23025</guid>
      <dc:creator>TanaraRose</dc:creator>
      <dc:date>2017-04-11T16:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variable length change</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349195#M23026</link>
      <description>&lt;P&gt;Look at the attributes of "name". It may have a shorter display format than the defined length.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 17:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349195#M23026</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-11T17:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable length change</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349196#M23027</link>
      <description>&lt;P&gt;Could you please clarify something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you see this shortened version of the text?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you looking in Viewtable? If so, that's not unusual for the Viewtable to show a truncated text string, but the text is all there, as you said, you can expand the field and see it all,&amp;nbsp;it's nothing to worry about.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 17:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349196#M23027</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-04-11T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable length change</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349203#M23028</link>
      <description>&lt;P&gt;Something a little odd is going on here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, I replicated your code, and as I expected the name field comes out at the full length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, either something odd is happening in your environment, or there's another explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect there is a $8. format on your variable. This will be copied through the data step, and EG will use it as guidance in how to display the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure about the export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you run this little piece of code. It will create a SAS dataset of one record, containing information about your new dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test_dataset;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; old_dataset;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; name;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; control = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;datasets&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;nolist&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;nodetails&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;contents&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=test_dataset &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=dataset_description &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;delete&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=test_dataset;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TYPE: should be 2 (character)&lt;BR /&gt;LENGTH: should be long enough to contain Alexandre. If it's 8, there's something odd happening.&lt;BR /&gt;FORMAT, FORMATL: These are the fields that will show if there's a format on your variable. If there's a character format with a length of 8 on it, that's your problem. Just remove or modify it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If none of the above seem to be an issue, post the dataset created by this code; it should contain the clues needed.&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 17:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-length-change/m-p/349203#M23028</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-04-11T17:32:23Z</dc:date>
    </item>
  </channel>
</rss>

