<?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: ERROR: Physical file does not exist - not solving in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892507#M352495</link>
    <description>&lt;P&gt;Open Windows explorer.&lt;/P&gt;
&lt;P&gt;Navigate to F:\SASWORK\_TD28280_VIRTAPP-PVSC49_\Prc2&lt;/P&gt;
&lt;P&gt;Show a screen capture of the files in that folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 04:04:19 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-09-04T04:04:19Z</dc:date>
    <item>
      <title>ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890501#M351880</link>
      <description>&lt;P&gt;I am a new SAS user, I have been trying to enter some values into one output file. But I keep getting the error&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist&lt;/P&gt;&lt;P&gt;In fact I even copied the location of the work folder and created a txt file there, still I get the same error.&lt;/P&gt;&lt;P&gt;Please pour in suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 01:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890501#M351880</guid>
      <dc:creator>subash8654</dc:creator>
      <dc:date>2023-08-23T01:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890503#M351881</link>
      <description>&lt;P&gt;We cannot help if you do not show us the code.&lt;/P&gt;
&lt;P&gt;Use the Insert Code icon (looks like &amp;lt; / &amp;gt; ) to get a pop-up window where you can paste the lines from the SAS log that shows how you are trying to READ from the file.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 03:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890503#M351881</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-23T03:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890505#M351882</link>
      <description>&lt;PRE&gt;proc import datafile='X:\Files\Users\XXXX\SAS\Sample.txt'
            out=Inputs
            dbms=dlm
            replace;
	    delimiter='09'x;
run;

proc print data=Work.Inputs;
run;

%sysfunc(pathname(work))\Inputs.txt %sysfunc(fexist(pathname(work)))\Output.txt);&lt;/PRE&gt;&lt;P&gt;I tried to take data from a tab delimited text file. trying to read/&amp;nbsp;&lt;SPAN&gt;create&amp;nbsp; input and output txt file in work folder.This is where I get the error. The output data returns the input from the above code, but gives this error for output&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Physical file does not exist, F:\SASWORK\_TD25664_VIRTAPP-PVSC49_\Prc2\Output.txt.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890505#M351882</guid>
      <dc:creator>subash8654</dc:creator>
      <dc:date>2023-08-23T06:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890507#M351883</link>
      <description>&lt;P&gt;Please post the complete (all code and messages) log of the PROC IMPORT step.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890507#M351883</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-23T06:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890546#M351903</link>
      <description>&lt;P&gt;The top of that program looks find.&amp;nbsp; What does the LOG say when you run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That last line is gibberish.&amp;nbsp; Why do you have that line? What are your trying to do with it?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 12:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890546#M351903</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-23T12:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890551#M351907</link>
      <description>&lt;P&gt;If you want make a temporary file then use the TEMP engine in a FILENAME statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename output temp;

proc export data=sashelp.class dbms=csv file=output ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If there is some reason that you need to give a special name to the temporary file than you can get the location of the WORK directory using %SYSFUNC(PATHNAME(WORK)).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename output "%sysfunc(pathname(work))/output.txt";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/890551#M351907</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-23T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891860#M352297</link>
      <description>&lt;P&gt;Actually I am not getting a problem/error in Proc IMport step.&lt;/P&gt;&lt;P&gt;after that I use a %tslit command&lt;/P&gt;&lt;P&gt;Since for confidential purpose, I cant share which file I am using but the complete structure is as follows&lt;/P&gt;&lt;PRE&gt;proc import datafile='X:\Files\Users\60135553\SAS\Sample.txt'
            out=Inputs
            dbms=dlm
            replace;
		    delimiter='09'x;
run;

proc print data=Work.Inputs;
run;&lt;/PRE&gt;&lt;P&gt;followed by&lt;/P&gt;&lt;PRE&gt;x %tslit("Location.exe" location.grm %sysfunc(pathname(work))\Inputs.txt %sysfunc(pathname(work))\Output.txt);

data dd_xx;
  length Primary_Key $36
             phn_name $50
         phn_code $6
         gifFlags $20;
  infile "%sysfunc(pathname(work))\Output.txt" dlm='09'x dsd;
  input Primary_Key $
        sa1_2021_code $
        sa1_2016_code $
        phn_name $
        phn_code $
        gifFlags  $;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2023 04:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891860#M352297</guid>
      <dc:creator>subash8654</dc:creator>
      <dc:date>2023-08-31T04:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891861#M352298</link>
      <description>&lt;P&gt;Please refer to my code above in the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, F:\SASWORK\_TD28280_VIRTAPP-PVSC49_\Prc2\Output.txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this in the log&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 05:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891861#M352298</guid>
      <dc:creator>subash8654</dc:creator>
      <dc:date>2023-08-31T05:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891866#M352299</link>
      <description>&lt;P&gt;We can't know what below highlighted bits are supposed to do and if this is even valid syntax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1693459819037.png" style="width: 769px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87354i7A05D885F83AC9AE/image-dimensions/769x25?v=v2" width="769" height="25" role="button" title="Patrick_0-1693459819037.png" alt="Patrick_0-1693459819037.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log tells you that ....\Output.txt doesn't exist. Based on the code you share you appear to believe the x command creates the file but then SAS clearly tells you that this is not the case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May-be run your command first via a command prompt on some file in a permanent location and make sure this works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 05:35:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891866#M352299</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-08-31T05:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891874#M352302</link>
      <description>&lt;P&gt;Instead of using the X statement, use the FILENAME PIPE method to run external commands:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
infile "Location.exe location.grm %sysfunc(pathname(work))\Inputs.txt %sysfunc(pathname(work))\Output.txt 2&amp;gt;&amp;amp;1" pipe;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will find all diagnostic messages returned from the command in the SAS log.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 07:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/891874#M352302</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-31T07:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892501#M352492</link>
      <description>Still I get the error&lt;BR /&gt;&lt;BR /&gt;ERROR: Physical file does not exist, F:\SASWORK\_TD26236_VIRTAPP-PVSC50_\Prc2\Output.txt).&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.OUTPUT_INTECH may be incomplete. When this step was stopped there were 0 observations and 20 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Sep 2023 00:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892501#M352492</guid>
      <dc:creator>subash8654</dc:creator>
      <dc:date>2023-09-04T00:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892503#M352493</link>
      <description>&lt;P&gt;That error message is different than the one you posted earlier.&lt;/P&gt;
&lt;P&gt;It is saying that it cannot find a file whose name ends in a right parentheses.&lt;/P&gt;
&lt;P&gt;If you tried to generate the name using some function call you appear to have an extra ) in your code.&lt;/P&gt;
&lt;P&gt;To really tell we need to see the whole log, not just the error message.&lt;/P&gt;
&lt;P&gt;And please remember to use the Insert Code button (looks like &amp;lt; / &amp;gt; ) to get a pop-up window were you can paste the text. That way the spacing is not modified by the web page trying to flow the text into paragraphs.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 02:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892503#M352493</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-04T02:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Physical file does not exist - not solving</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892507#M352495</link>
      <description>&lt;P&gt;Open Windows explorer.&lt;/P&gt;
&lt;P&gt;Navigate to F:\SASWORK\_TD28280_VIRTAPP-PVSC49_\Prc2&lt;/P&gt;
&lt;P&gt;Show a screen capture of the files in that folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 04:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Physical-file-does-not-exist-not-solving/m-p/892507#M352495</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-04T04:04:19Z</dc:date>
    </item>
  </channel>
</rss>

