Your SAS programs, embedded in web apps and elsewhere

Storing a data import

Reply
Contributor
Posts: 35

Storing a data import

I am attempting to create a stored process on a SAS server. Part of this process includes importing new data from a local computer. My SAS system has a default path through the server which is preventing me from directing the import to use the local computer. I have tried to deassign the server libname with no success.

Is it possible to override the server pathname?

Thanks.
SAS Super FREQ
Posts: 304

Re: Storing a data import

Can you post a code snippet that illustrates the problem you are having?

Thanks.

Vince DelGobbo
SAS R&D
Contributor
Posts: 35

Re: Storing a data import

Posted in reply to Vince_SAS
I have tried it several different ways and I don't know which method is closest to correct. Generally, when I manually import a file, EG3 puts the following line into my log:
File Name=/localhome/sastmp/SAS/#LN00009

File #LN00009 is created when I manually import a DAT file, but I want to be able to refresh the original DAT file and have the stored process import the new DAT file. When I attempted deassigning the libref and placing a new libref from my local computer, I get an error message:

ERROR: Physical file does not exist, /usr/local/sas91/SAS/Lev1/EUCE/C:\Documents and
Settings\Desktop\Book.dat.
SAS Super FREQ
Posts: 304

Re: Storing a data import

It is still difficult to diagnose what is happening without seeing more code. I suggest that you contact our Technical Support department so they can walk through the process with you.

You can open a track online at:

http://support.sas.com/ctx/supportform/index.jsp

Vince DelGobbo
SAS R&D
N/A
Posts: 0

Re: Storing a data import

When you run import wizards in Enterprise Guide, it can "see" your PC and pick up the data. Unfortunately when you run the code as a Stored Process it's running on the Unix server, which doesn't know about your PC.

We work around this by 1st FTPing the data to the Unix server and then using an INFILE statement to read it.
Ask a Question
Discussion stats
  • 4 replies
  • 269 views
  • 0 likes
  • 3 in conversation