DATA Step, Macro, Functions and more

SAS access interface to PC files

Reply
Super Contributor
Posts: 436

SAS access interface to PC files

I've access to 'SAS access interface to PC files' and my SAS 9.4 was installed in AIX server. When I tried to import\export local (C:\) files, I got the error as follows. Do I need in to install SAS in local drive to make it happen? Even If I do so, can I access files from server after I do local (C:\) installation.?

16         LIBNAME myfile 'c:\FCU.csv';

NOTE: Library MYFILE does not exist.

17        

18        

19         proc import datafile=myfile out=rawdata dbms=csv;

20         run;

NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to

  1. WORK.PARMS.PARMS.SLIST.

ERROR: Physical file does not exist, /data/rawdata/SAS_93/biserver/Lev1/SASApp/MYFILE.

ERROR: Import unsuccessful.  See SAS Log for details.



Super User
Posts: 7,854

Re: SAS access interface to PC files

Your AIX server is UNIX! This means that you have to acquaint yourself with the UNIX filesystem syntax.

So the moronic windows style filenames will not work. UNIX has no drive letters, and uses the forward slash to separate directory names.

Your libname statement cannot work at all, libraries are represented as directories in the filesystem, and not as files!

You probably tried to assign a logical filename; use the filename statement for that.

In order to open a file that resides on your PC, you either have to transfer it to the AIX server first or have a network share connection set up (AD, Novell, NFS) so that the AIX server can "see" a directory that you can also use from your PC.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super Contributor
Posts: 436

Re: SAS access interface to PC files

Posted in reply to KurtBremser

Got the same error with the file name statement as well.

May I request you to elaborate 'have a network share connection set up (AD, Novell, NFS) so that the AIX server can "see" a directory that you can also use from your PC'? So that I can ask network team to complete the set up.

What will be the likely answer for my question on , Do I need in to install SAS in local drive to make it happen? Even If I do so, can I access files from server after I do local (C:\) installation.?

Super User
Posts: 7,854

Re: SAS access interface to PC files

SAS is delivered with a specific license for a specific system environment. You also receive your media (or package download) for that specific environment.

So while there will be software that can be installed on several platforms (things like the Management Console, which is Java-based), your base SAS will only be installable on the main target platform. So you most likely will not have SAS for Windows.

You need to make your wanted infile (FCU.csv) visible for the SAS system on AIX. In order to do this, your adminstrator can set up a network share that is both visible by your PC and the SAS server, and supply you with the path names in the respective environments. Or you can simply transfer the file to the AIX server with a program like WinSCP.

For both of these options to work, you need to get a grasp on how files are named/found in a UNIX system. Learn what the root directory is, where your home directory is located, and the difference between relative and absolute path names.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 3 replies
  • 375 views
  • 3 likes
  • 2 in conversation