<?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: Data set with more than 32 characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657714#M197146</link>
    <description>&lt;P&gt;This becomes a question about system files then: how to list and rename files.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s reply addresses the rename part, and there are many answers on this forum about ways to list files.&lt;/P&gt;
&lt;P&gt;Very curious how you ended up with such long (and invalid) data set names?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2020 00:21:15 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-06-12T00:21:15Z</dc:date>
    <item>
      <title>Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657695#M197133</link>
      <description>&lt;P&gt;Hil folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that SAS can't handle datasets with more than 32 characters. But is there any way to identify it (are SAS datasets not DBMS tables) and change the name to any one below 32 characters using SAS programming?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 23:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657695#M197133</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-06-11T23:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657706#M197139</link>
      <description>&lt;P&gt;Sorry this question is unclear to me. What data sets do you have and what outcome do you want?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 23:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657706#M197139</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-11T23:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657708#M197140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, apologise me if my question was not clear. In our SAS environment, we find some SAS tables with names with more than 32 characters. For example: "table_name_user_big_name_table_table_table.sas7bdat". My question is, is there any way using SAS programming to change the name of this datasets to any one with less than 32 characters? For example the new name will be "table_name_user_big_name.sas7bdat".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 00:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657708#M197140</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-06-12T00:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657710#M197142</link>
      <description>&lt;P&gt;SAS will not make a SAS7BDAT file with a name like that. Someone must have made the file outside of SAS or renamed the file outside of SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just use operating system command to rename the file.&amp;nbsp; &amp;nbsp;If it has not been disabled in your installation just call the operating system RENAME command (mv on Unix) to rename the file.&amp;nbsp; Then you can reference the file as a dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile "mv table_name_user_big_name_table_table_table.sas7bdat table_name_user_big_name.sas7bdat" pipe;
  input;
  put _infile_;
run;
data want;
  set "table_name_user_big_name.sas7bdat";
run;
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If Operating System command access is disbled SAS does have the FCOPY() function that will let you copy the file to a new file with a shorter name.&amp;nbsp; I don't think it has a file rename function, but perhaps there is one hiding in the grab bag of functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 00:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657710#M197142</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-06-12T00:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657713#M197145</link>
      <description>&lt;P&gt;When you try to create a SAS table with a name more than 32 characters long SAS will fail and not create it. Where do you see these long name SAS tables? By viewing folder contents with an OS command or some other way? It is very unlikely these are genuine SAS tables. You can always try renaming them to &amp;lt; 32 character long names using an OS command. Then try reading them in SAS.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 00:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657713#M197145</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-06-12T00:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657714#M197146</link>
      <description>&lt;P&gt;This becomes a question about system files then: how to list and rename files.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s reply addresses the rename part, and there are many answers on this forum about ways to list files.&lt;/P&gt;
&lt;P&gt;Very curious how you ended up with such long (and invalid) data set names?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 00:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657714#M197146</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-12T00:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657715#M197147</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;, yes the users made outside SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 00:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657715#M197147</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-06-12T00:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data set with more than 32 characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657716#M197148</link>
      <description>&lt;P&gt;Unfortunately, some users change SAS datasets name through SAS EG (accessing "File folder").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 00:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-set-with-more-than-32-characters/m-p/657716#M197148</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-06-12T00:25:35Z</dc:date>
    </item>
  </channel>
</rss>

