10-20-2013 09:34 PM
libname adhoc_vb pcfiles
path = '//gaserver/myfile.sas7bat'
port = 2234;
proc import datafile = '//gaserver/myfile.sas7bat'
out = order1;
I want to import ths file called myfile.sasbat. In this case what would the dbms be called or is there another way to import a file with the .sasbat file extension?
10-20-2013 11:26 PM
As Mit wrote: The data is already stored as a SAS file so you need only to define a libname to access it within your SAS program, e.g:
libname mylib '' '//gaserver';
proc print data=mylib.myfile;
11-18-2014 07:57 AM
I have a related question that isn't answered yet.
I also have a .sasbat file. I want to use proc import so that I don't have to list the near hundred variables in an input statement. Is there no way to get around this?
11-18-2014 08:35 AM
Rename it to .sas7bdat, put it into a location where you have assigned a libname, and see if it is a valid SAS dataset. If not, discard.
11-18-2014 09:18 AM
You don't need to import it, just use it.