<?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: SAS 9.3 Pipe Access Device Error Msg - Physical File Does Not Exist in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113856#M259198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm embarrased to say but it was simply a change from single to double quotes that was needed.&amp;nbsp; Thanks much for prompt response and resolution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 18:16:06 GMT</pubDate>
    <dc:creator>persephone3</dc:creator>
    <dc:date>2013-06-20T18:16:06Z</dc:date>
    <item>
      <title>SAS 9.3 Pipe Access Device Error Msg - Physical File Does Not Exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113854#M259196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;Greetings, &lt;BR /&gt;I am using an unnamed pipe access method and filevar option to read multiple files from a directory. The directory letter in my macro variable (P) is not the directory the error message (C hard-drive) references. Why isn't the filevar option pointing to the indicated directory? I can run a directory list using the filename statement, so the pipe is working correctly. &lt;BR /&gt;Thanks in advance for your review. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;ERROR MESSAGE - " Physical file does not exist, C:\Documents and Settings\....txt. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;CODE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; %let my_dir = P:\PCP\Data\from_JMG; &lt;BR /&gt;filename indata pipe "dir ""%unquote(&amp;amp;my_dir.*.txt)"" /b"; &lt;BR /&gt;data JMG; &lt;BR /&gt;lenght fil2read $256; &lt;BR /&gt;&lt;BR /&gt;infile indata ; &lt;BR /&gt;input f2r $60.; &lt;BR /&gt;fil2read='&amp;amp;my_dir'||f2r; &lt;BR /&gt;infile __test filevar=fil2read truncover end=done; &lt;BR /&gt;do while (not done); &lt;BR /&gt;input Member__ $1. &lt;BR /&gt;Alternate_Member__ $7. Subscr__ $50. Medicare_Id $14. Medicaid_Id $10. &lt;BR /&gt;Mem_Last_Name $90. Mem_First_Name $90. Mem_Initial $7. Mem_DOB mmddyy10. PCP_Sys_ID best32. &lt;BR /&gt;Do_Not_Verify $1. PCP_Att__Method best32. Verify_Date yymmdd10. Prov_NPI best32. Prov_Last_Name $16. &lt;BR /&gt;Prov_First_Name $10. Prov_Initial $1. Practice_NPI $10. Practice_Name $52. Comments $74. &lt;BR /&gt;Plan_ID best32. Plan_Name $20. Finacial_Class $17. ; &lt;BR /&gt;output; &lt;BR /&gt;end; &lt;BR /&gt;run; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 15:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113854#M259196</guid>
      <dc:creator>persephone3</dc:creator>
      <dc:date>2013-06-20T15:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.3 Pipe Access Device Error Msg - Physical File Does Not Exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113855#M259197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the path work correctly before attempting the macro variable subsitution? I think that the way you construct your macro variable you need a "\" at the end.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial', 'sans-serif'; font-size: 10pt;"&gt;%let my_dir = P:\PCP\Data\from_JMG\; If you are trying to get a listing of the text files in directory from_JMG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial', 'sans-serif'; font-size: 10pt;"&gt;Otherwise your are looking for files &lt;SPAN style="font-family: 'Arial', 'sans-serif'; font-size: 10pt;"&gt; P:\PCP\Data\from_JMG*.Txt&amp;nbsp; which would be files starting with from_JMG in Folder Data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also this:&lt;/P&gt;&lt;P&gt;fil2read='&amp;amp;my_dir'||f2r;&lt;/P&gt;&lt;P&gt;may not be resolving the way you want. If F2R values are less than 60 characters the contcatenated value of Fil2Read will have possible many spaces between the UNRESOLVED value &amp;amp;My_DIR and the FR2 text. This would result in an invalid variable name if that's what you are attempting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a minimum Fil2Read="&amp;amp;my_dir"||Strip(F2r); is probably needed. Macro variable must be between double quotes to resolve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 17:18:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113855#M259197</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-06-20T17:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.3 Pipe Access Device Error Msg - Physical File Does Not Exist</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113856#M259198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm embarrased to say but it was simply a change from single to double quotes that was needed.&amp;nbsp; Thanks much for prompt response and resolution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 18:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-3-Pipe-Access-Device-Error-Msg-Physical-File-Does-Not/m-p/113856#M259198</guid>
      <dc:creator>persephone3</dc:creator>
      <dc:date>2013-06-20T18:16:06Z</dc:date>
    </item>
  </channel>
</rss>

