<?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: Increasing Variable name to more than 32 character in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532656#M16473</link>
    <description>Things have changed in the last 15 years and some of the methods I use are still from then....don't always remember the 'best' way since it keeps changing!</description>
    <pubDate>Mon, 04 Feb 2019 18:07:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-02-04T18:07:49Z</dc:date>
    <item>
      <title>Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532583#M16465</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am importing data from csv to Base sas. Some of the columns in csv is more than 32 characters and therefore can't read by PROC IMPORT properly. Is there a way to increase the length of variable so that sas can accomodate the whole length as it appears on the csv file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code I was trying:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME Apple 'C:\MyFolder'; 
OPTIONS FORMDLIM='_';



PROC IMPORT DATAFILE="C:\MyFolder\testfile.csv" 
OUT=Apple.Testfile
DBMS=csv REPLACE;
GETNAMES=YES;
DATAROW=2;
GUESSINGROWS=32000;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532583#M16465</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2019-02-04T15:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532592#M16466</link>
      <description>No, SAS Variable names are restricted to 32 characters in the current set up. I believe it's changing soon. You can customize the code from the log and change the name there as required and then use that code to import the data.</description>
      <pubDate>Mon, 04 Feb 2019 15:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532592#M16466</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-04T15:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532594#M16467</link>
      <description>&lt;P&gt;Not at this time.&lt;/P&gt;
&lt;P&gt;However you can assign labels to variables that are up to several hundred characters long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are going to read files in this layout more than once I strongly suggest using a data step to control variable names.&lt;/P&gt;
&lt;P&gt;I deal with data sources that have column headings (NOT variable names) that consist of up to 200 characters in the CSV file I read. I am &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt; going to program with such garbage.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532594#M16467</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-04T15:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532596#M16468</link>
      <description>&lt;P&gt;SAS has a hard limit of 32 characters (bytes) for variable and dataset names. You can put longer descriptions in variable labels.&lt;/P&gt;
&lt;P&gt;Copy the data step that proc import creates out of the log and adapt it to your needs.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532596#M16468</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-04T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532602#M16469</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;isn't that &lt;STRONG&gt;256 characters &lt;/STRONG&gt;only(max label length)&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, i am not aware there's update to that? But if that's coming from you, that should be correct.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Not at this time.&lt;/P&gt;
&lt;P&gt;However you can assign labels to variables that are up to &lt;STRONG&gt;several hundred characters&lt;/STRONG&gt; long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532602#M16469</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-04T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532649#M16470</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;isn't that &lt;STRONG&gt;256 characters &lt;/STRONG&gt;only(max label length)&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, i am not aware there's update to that? But if that's coming from you, that should be correct.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Not at this time.&lt;/P&gt;
&lt;P&gt;However you can assign labels to variables that are up to &lt;STRONG&gt;several hundred characters&lt;/STRONG&gt; long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just pointing out an option, more than 200 is more than "a couple of hundred" and just didn't feel more details needed at the moment.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532649#M16470</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-04T17:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532650#M16471</link>
      <description>&lt;P&gt;Oh ok sorry.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532650#M16471</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-04T17:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532654#M16472</link>
      <description>&lt;P&gt;Never assume, just because we old hands&amp;nbsp;&lt;EM&gt;are&lt;/EM&gt; old hands, that we know everything better than you. Be ready to question any statement when you feel that you know better.&lt;/P&gt;
&lt;P&gt;We probably have forgotten more about SAS than you have managed to learn in your presumably short career, but that only means that there is a lot where you may be right, while we're not.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532654#M16472</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-04T18:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532656#M16473</link>
      <description>Things have changed in the last 15 years and some of the methods I use are still from then....don't always remember the 'best' way since it keeps changing!</description>
      <pubDate>Mon, 04 Feb 2019 18:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532656#M16473</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-04T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing Variable name to more than 32 character</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532676#M16474</link>
      <description>&lt;P&gt;Thank you sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; &amp;nbsp;for the beautiful and encouraging words. I like that amazing attitude in wise not &lt;SPAN style="text-decoration: line-through;"&gt;old&lt;/SPAN&gt;&amp;nbsp;folks like you in filling new folks in the spectrum. While I acknowledge and agree, I must opine arguably older are not older &lt;STRONG&gt;rather wiser&lt;/STRONG&gt; and on the contrary the younger ones across the globe are mostly chaos(me very much included being naughty-- not willing to listen and learn) barring a selected &lt;U&gt;&lt;STRONG&gt;disciplined&lt;/STRONG&gt; &lt;/U&gt;few. Well well, we see that everyday in our streets, metro trains and all walks of life.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes, I wonder how my parents managed to raise their only child and am glad they are seeing changes though late than never. For what I remember, had I been sincere, attentive and disciplined early on, I would have probably enjoyed finer things in life much earlier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, Good things are happening to me &lt;STRONG&gt;by chance,&lt;/STRONG&gt; I wish it happened to me&amp;nbsp;&lt;STRONG&gt;by choice&lt;/STRONG&gt; and attentive en-devour.&lt;/P&gt;
&lt;P&gt;On that note a funny but real and serious truth. I was a fork lift driver at IKEA, Wednesfield in England while attempting to do my undergrad to get that damn degree to keep my parents happy with no interest in it. Anyway, So, Pub was daily routine and we were all well over tipsy. A guy asked -"what do i do for a living". Feeling embarrassed to tell the truth that I am blue collar worker, I replied I work in supply chain logistics haha to sound like a white collar. Then he says, learn SAS and that will be helpful, and much to my surprise it really has been a better addiction than play station/Xbox. His name was Marcin and he was from Munich,&amp;nbsp; since then paulaner dark dunkel continues to be my favorite &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reading!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Increasing-Variable-name-to-more-than-32-character/m-p/532676#M16474</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-04T18:36:49Z</dc:date>
    </item>
  </channel>
</rss>

