<?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: How to export big data with variables containing more than 32 bytes. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700360#M25698</link>
    <description>&lt;P&gt;sorry this is the correct program&lt;/P&gt;
&lt;P&gt;data combine1;&lt;BR /&gt;set combine;&lt;BR /&gt;length srvy_response_tracking_comp $10;&lt;/P&gt;
&lt;P&gt;if survey_response_tracking_complete= 0 then srvy_response_tracking_comp='Incomplete';&lt;BR /&gt;if survey_response_tracking_complete= 1 then srvy_response_tracking_comp='Unverified';&lt;BR /&gt;if survey_response_tracking_complete= 2 then srvy_response_tracking_comp='Complete';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2020 21:49:42 GMT</pubDate>
    <dc:creator>hjjijkkl</dc:creator>
    <dc:date>2020-11-19T21:49:42Z</dc:date>
    <item>
      <title>How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700310#M25693</link>
      <description>&lt;P&gt;I am exporting data from a big database to SAS and I was using if/then statement to specify the variable but,&amp;nbsp; I am getting and error saying "ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes." And I dont know how to correct it. I don't see any error in exporting the data to SAS. Need help! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 19:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700310#M25693</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-11-19T19:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700313#M25694</link>
      <description>&lt;P&gt;Your variable name is longer than 32 characters (33)&lt;/P&gt;
&lt;P&gt;Here's a link to the documentation on&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lepg&amp;amp;docsetTarget=n1m3fal4mygiy0n1fvq8v5ax2jfn.htm&amp;amp;locale=en" target="_self"&gt;Rules for Variable Names&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 19:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700313#M25694</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2020-11-19T19:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700316#M25695</link>
      <description>&lt;P&gt;Here's an example of the SAS Log when you try to create a variable name longer than 32 characters&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;850  data temp ;
851      survey_response_tracking_complete="" ;
ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.
852  run ;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.TEMP may be incomplete.  When this step was stopped there were 0
         observations and 0 variables.
NOTE: DATA statement used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Nov 2020 19:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700316#M25695</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2020-11-19T19:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700324#M25696</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222563"&gt;@hjjijkkl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am exporting data from a big database to SAS and I was using if/then statement to specify the variable but,&amp;nbsp; I am getting and error saying "ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes." And I dont know how to correct it. I don't see any error in exporting the data to SAS. Need help! Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please show what code you are running. Include the log with the notes from SAS. Make sure to paste the text into the pop-up window you get when you click on the Insert Code button (looks like &amp;lt;/&amp;gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variables can be much longer than 32 bytes, but the NAME you use to reference the variable in SAS code cannot be longer than 32 bytes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are exporting the data from some other database then use the syntax/language of that database to export the data. You can then use SAS code to read in the data you exported and at that point you can just use valid names for your variables.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 21:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700324#M25696</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-11-19T21:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700359#M25697</link>
      <description>&lt;P&gt;Here is the program and log&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data combine1; &lt;BR /&gt;set combine;&lt;BR /&gt;length survey_response_tracking_complete $10;&lt;/P&gt;
&lt;P&gt;if survey_response_tracking_complete= 0 then srvy_response_tracking_comp='Incomplete';&lt;BR /&gt;if survey_response_tracking_complete= 1 then srvy_response_tracking_comp='Unverified';&lt;BR /&gt;if survey_response_tracking_complete= 2 then srvy_response_tracking_comp='Complete';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if &lt;STRONG&gt;survey_response_tracking_complete&lt;/STRONG&gt;= 0 then srvy_response_tracking_comp='Incomplete';&lt;BR /&gt;ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.&lt;BR /&gt;1915 if survey_response_tracking_complete= 1 then srvy_response_tracking_comp='Unverified';&lt;BR /&gt;ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.&lt;BR /&gt;1916 if survey_response_tracking_complete= 2 then srvy_response_tracking_comp='Complete';&lt;BR /&gt;ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 21:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700359#M25697</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-11-19T21:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700360#M25698</link>
      <description>&lt;P&gt;sorry this is the correct program&lt;/P&gt;
&lt;P&gt;data combine1;&lt;BR /&gt;set combine;&lt;BR /&gt;length srvy_response_tracking_comp $10;&lt;/P&gt;
&lt;P&gt;if survey_response_tracking_complete= 0 then srvy_response_tracking_comp='Incomplete';&lt;BR /&gt;if survey_response_tracking_complete= 1 then srvy_response_tracking_comp='Unverified';&lt;BR /&gt;if survey_response_tracking_complete= 2 then srvy_response_tracking_comp='Complete';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 21:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700360#M25698</guid>
      <dc:creator>hjjijkkl</dc:creator>
      <dc:date>2020-11-19T21:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700366#M25699</link>
      <description>Run a proc contents on your data set and see what length the variable has...or use SQL Pass through to rename the column while you import the data. &lt;BR /&gt;&lt;BR /&gt;From this, do you see the variable with the name and length specified?&lt;BR /&gt;&lt;BR /&gt;proc contents data=combine;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 19 Nov 2020 22:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700366#M25699</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-19T22:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to export big data with variables containing more than 32 bytes.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700389#M25707</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The string "survey_response_tracking_complete" consists of 33 characters, so it cannot be the name of a variable in a SAS dataset. Double-click on the dataset in library WORK, and see how the name ended up after&lt;EM&gt; importing&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;the table into SAS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/222563"&gt;@hjjijkkl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Here is the program and log&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data combine1; &lt;BR /&gt;set combine;&lt;BR /&gt;length survey_response_tracking_complete $10;&lt;/P&gt;
&lt;P&gt;if survey_response_tracking_complete= 0 then srvy_response_tracking_comp='Incomplete';&lt;BR /&gt;if survey_response_tracking_complete= 1 then srvy_response_tracking_comp='Unverified';&lt;BR /&gt;if survey_response_tracking_complete= 2 then srvy_response_tracking_comp='Complete';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if &lt;STRONG&gt;survey_response_tracking_complete&lt;/STRONG&gt;= 0 then srvy_response_tracking_comp='Incomplete';&lt;BR /&gt;ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.&lt;BR /&gt;1915 if survey_response_tracking_complete= 1 then srvy_response_tracking_comp='Unverified';&lt;BR /&gt;ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.&lt;BR /&gt;1916 if survey_response_tracking_complete= 2 then srvy_response_tracking_comp='Complete';&lt;BR /&gt;ERROR: The variable named survey_response_tracking_complete contains more than 32 bytes.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 03:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-export-big-data-with-variables-containing-more-than-32/m-p/700389#M25707</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-20T03:15:09Z</dc:date>
    </item>
  </channel>
</rss>

