Desktop productivity for business analysts and programmers

File or directory prompts in EG

Reply
Contributor
Posts: 53

File or directory prompts in EG


I am trying to create a prompt in the Prompt Manager of EG that is of type 'File or directory' but my Local Server does not appear in the Server drop-down. Is this the desired behavior of EG?

Is there a way that I could create a prompt for the user to select the input file to use from their local machine since the name of the file changes each term?

Thanks!

Respected Advisor
Posts: 3,124

Re: File or directory prompts in EG

I have an impression that it is NOT a "prompt" question, rather, it is a data access problem. EG can be either run either locally on your PC or on a remote SAS workspace server(you only have EG client on your PC), my guess is that your EG belongs to latter, otherwise, you wouldn't have to ask this question.

In this case, EG would NOT recognize your local drive automatically.  If you want to share some of your local data with your EG session, you would need to put them on somewhere that the SAS server can 'see'. This will bring up further questions, is your SAS server running on Unix/Windows/other? If Unix, you could use SAMBA drive to host your shared data; Windows will have different form of network drive.

Chris has a blog discussing a EG utility that can "copy files in between local and remote session", you may also find it useful:

There and back again: copying files in SAS Enterprise Guide - The SAS Dummy

HTH,

Haikuo

Contributor
Posts: 53

Re: File or directory prompts in EG

Thank you for the information and link. When I expand my Server List in EG, I do have access to my Local Server and its Libraries and Files. I am on Win7 64-bit and the server is running Windows Enterprise 2003 64-bit. Thus, I assumed that since I can see the files in the server list I should be able to select the Local server from the drop-down when I try to add a prompt of type File or directory.

Respected Advisor
Posts: 3,124

Re: File or directory prompts in EG

I see. That is the way it is for EG. The reason for that (my guess) is that the process is run on server and will be run on server, all of the data referenced is registered on in the metadata. Bottom line is that EG is server centered, This is to safeguard that your code/package/stp will run regardless of your PC condition.  If you need data on your local drive, you will have to have it mapped and registered in metadata.

Haikuo

Ask a Question
Discussion stats
  • 3 replies
  • 619 views
  • 6 likes
  • 2 in conversation