04-18-2014 04:00 PM
Is there a way to do FSLIST of a '.dat' file, after connecting to the LINUX server using SAS Connect?
I am in PC SAS and I connect to the linux machine fine. But then when I try to do the FSLIST up in command box, l get an error because it is only looking at my local machine so it can't find the file.
04-18-2014 04:17 PM
Are you typing in the name of the file for the FSLIST command or just issuing the FSLIST command? The second should let you browse to any location to find files.
Or if you can successfuly assign a fileref using the Filename statement you should be able to use that with the fslist command.
04-18-2014 05:34 PM
Try this little program. If it works for you convert it into a macro.
%let rfile=remote_file_name ;
filename rfile temp ;
proc download infile="&rfile" outfile=rfile binary status=n ;
dm "fslist rfile";
04-19-2014 04:57 AM
There is no way for browsing remote Unix files when using SAS/Connect. You could use a (s)ftp program for that.
If you have Eguide with a WS server connected at the other side all of that is included in Eguide. you just need to become familiar with Unix.
04-22-2014 08:16 AM
OK - please give me more information about using Enterprise Guide to do this. I have access to EG and can see the '.dat' file under SASApp in the Files folder. When I double click on the file and it opens. I want to see it with the columns set at the top. Can I do this?
04-22-2014 08:46 AM
SAShunter, You found that it will open the file.
I have seen the columns when importing it in column mode. Shifting the positions creating the variables. (type *.txt) Not found any example that quickly at the SAS site.
There must be a menu-option to start that process.
When the suffix would be a "*-.sas* it would open as SAS-program and adding a link in you current flow.
I did not feel some need using to columns anymore with this kind of approaches.
going for a download that should be easy There and back again: copying files in SAS Enterprise Guide - The SAS Dummy