<?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: Proc Export to txt file not exist error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816505#M322305</link>
    <description>&lt;P&gt;Best practice is to ensure that all file paths start with a DRIVE (windows) or a Disk mount. Anything else will be treated as relative to where SAS currently is executing which is often the SAS installation folders and you are very likely not to have write privileges to that location and so you cannot create a file, i.e. it does not exist.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jun 2022 17:08:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-06-04T17:08:15Z</dc:date>
    <item>
      <title>Proc Export to txt file not exist error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816479#M322284</link>
      <description>&lt;PRE&gt;data _null_;
	file "&amp;amp;myopicshare/Loan Rpt1 SCRA2_&amp;amp;mToday..txt" lrecl=119 TERMSTR=crlf;
    set file22 ;
	PORT = 3621;
	SERVERUSER="&amp;amp;euserid.";
	SERVERPASS="&amp;amp;upass.";
	label;
    put @1 ssn $9.
        @10 dob $8.
        @18 last_name $26.
        @44 first_name $20.
           @64 loan_id $28.
           @92 duty_date $8. 
           @100 Middle_Name $20.
    ;
	
run;

ERROR: Physical file does not exist, /sasgrid/hall1/sascompute/config94/Lev1/SASApp/&lt;/PRE&gt;
&lt;P&gt;Can someone explain why I am getting a file not found error during export?&amp;nbsp; I have the correct file path yet the error exists.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 03:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816479#M322284</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2022-06-04T03:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to txt file not exist error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816482#M322286</link>
      <description>&lt;P&gt;What are you expecting the following statements to accomplish?&lt;/P&gt;
&lt;P&gt;They create variables, but the variables are never used so I think you're trying to connect to a server but that's not what this code does. And since it's a _null_ data step nothing is saved anywhere.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	PORT = 3621;
	SERVERUSER="&amp;amp;euserid.";
	SERVERPASS="&amp;amp;upass.";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5629"&gt;@Q1983&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;data _null_;
	file "&amp;amp;myopicshare/Loan Rpt1 SCRA2_&amp;amp;mToday..txt" lrecl=119 TERMSTR=crlf;
    set file22 ;
	PORT = 3621;
	SERVERUSER="&amp;amp;euserid.";
	SERVERPASS="&amp;amp;upass.";
	label;
    put @1 ssn $9.
        @10 dob $8.
        @18 last_name $26.
        @44 first_name $20.
           @64 loan_id $28.
           @92 duty_date $8. 
           @100 Middle_Name $20.
    ;
	
run;

ERROR: Physical file does not exist, /sasgrid/hall1/sascompute/config94/Lev1/SASApp/&lt;/PRE&gt;
&lt;P&gt;Can someone explain why I am getting a file not found error during export?&amp;nbsp; I have the correct file path yet the error exists.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 04:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816482#M322286</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-04T04:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to txt file not exist error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816485#M322288</link>
      <description>&lt;P&gt;These statements serve no purpose, so remove them:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PORT = 3621;
	SERVERUSER="&amp;amp;euserid.";
	SERVERPASS="&amp;amp;upass.";
	label;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Add these statements before your DATA _NULL_ step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put "&amp;amp;myopicshare";
%put "&amp;amp;mToday";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;run everything, and post the complete log.&lt;/P&gt;
&lt;PRE&gt;Lev1/SASApp&lt;/PRE&gt;
&lt;P&gt;is a part of the SAS configuration tree on the server, where only the SAS installation user has write permission. You cannot create files or directories there.&lt;/P&gt;
&lt;P&gt;I guess your macro variable does not provide an absolute path starting at the root of the UNIX filesystem.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 05:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816485#M322288</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-04T05:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export to txt file not exist error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816505#M322305</link>
      <description>&lt;P&gt;Best practice is to ensure that all file paths start with a DRIVE (windows) or a Disk mount. Anything else will be treated as relative to where SAS currently is executing which is often the SAS installation folders and you are very likely not to have write privileges to that location and so you cannot create a file, i.e. it does not exist.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2022 17:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-to-txt-file-not-exist-error/m-p/816505#M322305</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-04T17:08:15Z</dc:date>
    </item>
  </channel>
</rss>

