<?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: Import: Prompt the user to specify the file path in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416776#M26826</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for the answers!&lt;BR /&gt;I tried to do the prompt type &lt;STRONG&gt;File or directory,&lt;/STRONG&gt; however&amp;nbsp; it does not access to my own pc, but rather access to the SAS Server.&amp;nbsp;&lt;BR /&gt;Do you know how can I do this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mariana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 17:31:30 GMT</pubDate>
    <dc:creator>mfaqueiroz</dc:creator>
    <dc:date>2017-11-28T17:31:30Z</dc:date>
    <item>
      <title>Import: Prompt the user to specify the file path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416657#M26813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;searched through&amp;nbsp;the internet,&amp;nbsp;wherever I could find the answer. Here's my problem: I need to import a csv that is always chaging the name (isn't a piece of cake, I know :(,&amp;nbsp; but i cannot modify this process). It is possible to prompt the user to specify the file path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;M&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 12:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416657#M26813</guid>
      <dc:creator>mfaqueiroz</dc:creator>
      <dc:date>2017-11-28T12:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import: Prompt the user to specify the file path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416667#M26814</link>
      <description>&lt;P&gt;Within EG, you could specify a project prompt (see the EG online help about "Working with prompts").&amp;nbsp; You can create a simple text prompt, or a more specific "File selection" prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prompt.png" style="width: 590px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16879iC7F64FED3BF040E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="prompt.png" alt="prompt.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 12:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416667#M26814</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-11-28T12:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Import: Prompt the user to specify the file path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416668#M26815</link>
      <description>&lt;P&gt;If you can't change the name of the file = your import documentation is broken.&amp;nbsp; How will you be versioning the file, what is the traceability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aside from that there are prompts in EG:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings17/0818-2017.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings17/0818-2017.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you can't fix down the naming, can you not just save the file in one directory on its own, that way you could just use a wildcard:&lt;/P&gt;
&lt;PRE&gt;data want;
  infile ".../*.csv";
...
run;&lt;/PRE&gt;
&lt;P&gt;Would save some hassle.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 12:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416668#M26815</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-28T12:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import: Prompt the user to specify the file path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416776#M26826</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for the answers!&lt;BR /&gt;I tried to do the prompt type &lt;STRONG&gt;File or directory,&lt;/STRONG&gt; however&amp;nbsp; it does not access to my own pc, but rather access to the SAS Server.&amp;nbsp;&lt;BR /&gt;Do you know how can I do this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mariana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416776#M26826</guid>
      <dc:creator>mfaqueiroz</dc:creator>
      <dc:date>2017-11-28T17:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import: Prompt the user to specify the file path</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416801#M26827</link>
      <description>&lt;P&gt;You might not be able to get the "local" file dialog for that file browser.&amp;nbsp; You might need to settle for a simple text prompt (type in the value).&amp;nbsp; You can seed the value with a default that might work much of the time, depending how consistent the file locations are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order for the code that follows to be able to run, the file you select must be available to the SAS server.&amp;nbsp; So, selecting a local CSV file and then expecting a remote DATA step to process it -- that won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's your situation, you can use the Data-&amp;gt;Copy Files task (EG 7.13 and later) to copy a local file to a remote SAS and then import it. The Copy Files task accepts wildcards and macro variables, so you really can generalize it for different scenarios.&amp;nbsp; You would be doing the opposite of this: &lt;A href="https://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" target="_self"&gt;Export and download any file&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 18:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-Prompt-the-user-to-specify-the-file-path/m-p/416801#M26827</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-11-28T18:34:39Z</dc:date>
    </item>
  </channel>
</rss>

