<?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: File Name Parameter in Developers</title>
    <link>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32366#M2615</link>
    <description>Hi:&lt;BR /&gt;
  It has always been my understanding that the Stored Process Server and the Workspace server did not have any visibility of files on the user's local machine. &lt;BR /&gt;
&lt;BR /&gt;
So, for example, if someone sends you a file of data and you save it to c:\temp\month7.dat, you cannot run a Stored Process against the local file as long as it is "down" on your local machine. You need to upload the file to a server location and in most instances, the Stored Process program would probably be hardcoded to look for a file with the name:&lt;B&gt;\\srvname\dir\month&amp;amp;mm..dat &lt;/B&gt; where the macro variable &lt;B&gt;&amp;amp;mm&lt;/B&gt; was set by the stored process program logic or by a simple input parameter for month. &lt;BR /&gt;
&lt;BR /&gt;
Of course, this means that one month you couldn't name the datafile "mnth7.dat" and the next month call it "month8.dat" and then "mon9.dat"  -- there would have to be some structure and regularity to the file names. However, this is not an answer as to WHY or HOW you'd use the File Name Parameter type.&lt;BR /&gt;
 &lt;BR /&gt;
  When I was working on the stored process course, I could never figure out a good use-case for this parameter type. I've been working with Stored Processes and teaching the material ever since the first stored process course. All I can do to contribute to this discussion is share my experience that when questions come back to me about stored processes, I don't get questions about folks wanting to use the File Name parameter type.&lt;BR /&gt;
&lt;BR /&gt;
  If the user is insistent on some kind of answer for how or why one might use this parameter type in a stored process, you might ask Tech Support whether they have an example. &lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 18 Jul 2008 23:13:16 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-07-18T23:13:16Z</dc:date>
    <item>
      <title>File Name Parameter</title>
      <link>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32363#M2612</link>
      <description>Hi all&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to use the "File Name" type parameter in a Stored Process within Enterprise Guide. It basically creates a Browse button.&lt;BR /&gt;
&lt;BR /&gt;
When i click on this button, it shows me only files and directories of my local machine. The stored process should turn on the server side, so this button becomes completely useless. I need to see files on server and not on my local machine. &lt;BR /&gt;
&lt;BR /&gt;
Is there an option for that?&lt;BR /&gt;
Othewise, what is the purpose of this type of parameter?&lt;BR /&gt;
&lt;BR /&gt;
Thank's</description>
      <pubDate>Fri, 18 Jul 2008 13:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32363#M2612</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-18T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: File Name Parameter</title>
      <link>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32364#M2613</link>
      <description>Hi:&lt;BR /&gt;
  I tested this parameter type a while ago and found that if I clicked "My Network Places" that I could choose files on a server machine. What happened is that (assuming my server was visible from "My Network Places"), I could choose a file and the returned name would be something like:&lt;BR /&gt;
&lt;B&gt;\\sashq\Shared Folders\bi_share\filename.ext&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
If your servers are not visible through My Network Places, then I am not sure how you make the Browse window work any differently. This seems like a question for Tech Support.&lt;BR /&gt;
&lt;BR /&gt;
It's not entirely clear to me how/why you want to use the File Name type of parameter...if you let the users pick a file from a server, how would you guarantee that they would pick the file that your Stored Process was expecting to get? How would you use the filename?? In an INFILE statement?? In a FILE statement?? &lt;BR /&gt;
&lt;BR /&gt;
For example, what if these were two files on the server:&lt;BR /&gt;
&lt;B&gt;\\sashq\Shared Folders\bi_share\xyz.dat&lt;/B&gt; and&lt;BR /&gt;
&lt;B&gt;\\sashq\Shared Folders\bi_share\xyz_other.txt&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
and if they pick xyz.dat, everything works fine, but xyz_other.txt is a text file that is just "read me" documentation. Somebody might click on the wrong file name and cause the stored process program NOT to run. How do you control for something like that???&lt;BR /&gt;
&lt;BR /&gt;
I think that your best bet for help with this question is to contact Tech Support and explain to them what your stored process needs to do and which client applications you are going to run the stored process from. They can help you figure out whether the File Name parameter type will work to do what you want to do.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 18 Jul 2008 18:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32364#M2613</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-18T18:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: File Name Parameter</title>
      <link>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32365#M2614</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
No, servers are not visible on "My Network Places".&lt;BR /&gt;
&lt;BR /&gt;
This stored process is not mine but owned by the user himself. Basically, he needs to read some files sended by other applications.&lt;BR /&gt;
&lt;BR /&gt;
The user's question is simple: Stored Process is executed on the server side and it can't see at any moment files on the local machine, so what is the real utility of this kind of parameter? In which case it can be used? &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 18 Jul 2008 22:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32365#M2614</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-18T22:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: File Name Parameter</title>
      <link>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32366#M2615</link>
      <description>Hi:&lt;BR /&gt;
  It has always been my understanding that the Stored Process Server and the Workspace server did not have any visibility of files on the user's local machine. &lt;BR /&gt;
&lt;BR /&gt;
So, for example, if someone sends you a file of data and you save it to c:\temp\month7.dat, you cannot run a Stored Process against the local file as long as it is "down" on your local machine. You need to upload the file to a server location and in most instances, the Stored Process program would probably be hardcoded to look for a file with the name:&lt;B&gt;\\srvname\dir\month&amp;amp;mm..dat &lt;/B&gt; where the macro variable &lt;B&gt;&amp;amp;mm&lt;/B&gt; was set by the stored process program logic or by a simple input parameter for month. &lt;BR /&gt;
&lt;BR /&gt;
Of course, this means that one month you couldn't name the datafile "mnth7.dat" and the next month call it "month8.dat" and then "mon9.dat"  -- there would have to be some structure and regularity to the file names. However, this is not an answer as to WHY or HOW you'd use the File Name Parameter type.&lt;BR /&gt;
 &lt;BR /&gt;
  When I was working on the stored process course, I could never figure out a good use-case for this parameter type. I've been working with Stored Processes and teaching the material ever since the first stored process course. All I can do to contribute to this discussion is share my experience that when questions come back to me about stored processes, I don't get questions about folks wanting to use the File Name parameter type.&lt;BR /&gt;
&lt;BR /&gt;
  If the user is insistent on some kind of answer for how or why one might use this parameter type in a stored process, you might ask Tech Support whether they have an example. &lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 18 Jul 2008 23:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/File-Name-Parameter/m-p/32366#M2615</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-18T23:13:16Z</dc:date>
    </item>
  </channel>
</rss>

