<?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: Insufficient authorization at Proc Export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814532#M321496</link>
    <description>&lt;P&gt;When you use EXCELCS, you communicate from the SAS server with a SAS PC File Server instance on a remote host. This PC File Server process has the necessary permissions for the target resource, while your SAS process has not. This needs to be resolved with your server admins; they must make sure that the userid running your SAS process gets the necessary permission for the shared network resource.&lt;/P&gt;
&lt;P&gt;The PC Files Server is specifically designed for MS Office files (Excel, Access), not for text files.&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2022 06:43:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-05-21T06:43:43Z</dc:date>
    <item>
      <title>Insufficient authorization at Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814522#M321486</link>
      <description>&lt;PRE&gt;%let rptout = \\remote1;

data cars(keep=make drivetrain length);
set sashelp.cars;
run;

data _null_;
file "&amp;amp;rptout\test..txt" lrecl=119 TERMSTR=crlf;
set cars;
put @1 make $9.
@10 drivetrain $15.
@16 length $5
;
run;&lt;/PRE&gt;
&lt;P&gt;When I run the code I am getting an insufficient authorization message.&amp;nbsp; Yet when I run the code using the following code it runs without issue.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;PROC EXPORT 
OUTFILE = "&amp;amp;rptout\cars..xlsb"     
DATA= cars
            DBMS=   EXCELCS   REPLACE;
            SHEET='sheet1';
            SERVER="sas-pcff.share1-prd.com";
PORT = 9999; 
SERVERUSER="&amp;amp;suserid.";
SERVERPASS="&amp;amp;mypass.";
run;&lt;/LI-CODE&gt;
&lt;P&gt;The issue is I need this with a txt extension and with columns in tab set up like the first dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 02:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814522#M321486</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2022-05-21T02:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient authorization at Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814530#M321494</link>
      <description>&lt;P&gt;Since your Proc Export code includes Port, ServerUser and Serverpass parameters and works correctly but your DATA step does not include any such permissions related parameters then that means that you likely need to include the equivalents in the data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc EXPORT will create TAB delimited output files using DBMS=TAB and use the .TXT extension in the outfile. Not that SHEET is not going to be valid with a TAB file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have an extra . in both versions of your output name. The "extra" dot would be needed if the part of the file name immediately before the extension is a macro variable such as "path\&amp;amp;somevar..txt" as the first . is used to tell the macro processor that is the end of the macro variable. If you used "path\&amp;amp;somevar.txt" then that first . with that use means there would not be a dot before the extension.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 05:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814530#M321494</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-21T05:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient authorization at Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814532#M321496</link>
      <description>&lt;P&gt;When you use EXCELCS, you communicate from the SAS server with a SAS PC File Server instance on a remote host. This PC File Server process has the necessary permissions for the target resource, while your SAS process has not. This needs to be resolved with your server admins; they must make sure that the userid running your SAS process gets the necessary permission for the shared network resource.&lt;/P&gt;
&lt;P&gt;The PC Files Server is specifically designed for MS Office files (Excel, Access), not for text files.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 06:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-authorization-at-Proc-Export/m-p/814532#M321496</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-21T06:43:43Z</dc:date>
    </item>
  </channel>
</rss>

