<?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 PROC COPY error when input dataset name has special character in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64424#M18299</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I wanted to use PROC COPY for copying a dataset but received an error after submitting the following:&lt;BR /&gt;
&lt;BR /&gt;
proc copy out=work in=ntsqlpro;&lt;BR /&gt;
	select LÅN_GARANTI;&lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
ERROR: The value 'LÅN_GARANTI'n is not a valid SAS name.&lt;BR /&gt;
&lt;BR /&gt;
I am running 9.1.3. I assume that it is because of the special character in the original dataset name. Is there a way to circumvent this or is it not possible to use PROC COPY with special characters? I googled the web for explanations but didn't come across any. &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Helle</description>
    <pubDate>Mon, 16 Aug 2010 11:20:04 GMT</pubDate>
    <dc:creator>Helle</dc:creator>
    <dc:date>2010-08-16T11:20:04Z</dc:date>
    <item>
      <title>PROC COPY error when input dataset name has special character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64424#M18299</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I wanted to use PROC COPY for copying a dataset but received an error after submitting the following:&lt;BR /&gt;
&lt;BR /&gt;
proc copy out=work in=ntsqlpro;&lt;BR /&gt;
	select LÅN_GARANTI;&lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
ERROR: The value 'LÅN_GARANTI'n is not a valid SAS name.&lt;BR /&gt;
&lt;BR /&gt;
I am running 9.1.3. I assume that it is because of the special character in the original dataset name. Is there a way to circumvent this or is it not possible to use PROC COPY with special characters? I googled the web for explanations but didn't come across any. &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Helle</description>
      <pubDate>Mon, 16 Aug 2010 11:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64424#M18299</guid>
      <dc:creator>Helle</dc:creator>
      <dc:date>2010-08-16T11:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY error when input dataset name has special character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64425#M18300</link>
      <description>Works fine for me.  My guess is that you have the wrong value set for your validvarname option.&lt;BR /&gt;
&lt;BR /&gt;
Try options validvarname=v7 and see if that corrects the problem.&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Art</description>
      <pubDate>Mon, 16 Aug 2010 11:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64425#M18300</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2010-08-16T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY error when input dataset name has special character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64426#M18301</link>
      <description>It is hard to tell, but it looks like the A in LAN is not the standard English A.  This would require VALIDVARNAME to be set to ANY.  You may also need to write the SELECT statement as:&lt;BR /&gt;
[pre]&lt;BR /&gt;
select 'LAN_GARANTI'n;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
where you use the A that is not on my keyboard.</description>
      <pubDate>Tue, 17 Aug 2010 05:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64426#M18301</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-08-17T05:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY error when input dataset name has special character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64427#M18302</link>
      <description>Helle&lt;BR /&gt;
&lt;BR /&gt;
you need to change the name of the table if you want to copy it into the WORK library. Although SAS/Access to a dbms supports complex names like your table, that flexibility is not present in the support of table names in the (base SAS) WORK library.&lt;BR /&gt;
You might have more success with a simple data step, like[pre]DATA work.loan_garanti ;&lt;BR /&gt;
 set ntsqlpro."LÅN_GARANTI"n ;&lt;BR /&gt;
run ;[/pre]&lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
      <pubDate>Tue, 17 Aug 2010 12:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64427#M18302</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-08-17T12:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC COPY error when input dataset name has special character</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64428#M18303</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In the end, I opted for the simple data step solution because I still received the same error message even after changing the options and modifying the code. Thanks for all your input.&lt;BR /&gt;
&lt;BR /&gt;
Helle</description>
      <pubDate>Fri, 20 Aug 2010 12:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-COPY-error-when-input-dataset-name-has-special-character/m-p/64428#M18303</guid>
      <dc:creator>Helle</dc:creator>
      <dc:date>2010-08-20T12:49:09Z</dc:date>
    </item>
  </channel>
</rss>

