I'm trying to use BASE SAS connected to no profile to query a SAS dataset on one metadata server bring it in locally and upload the dataset to another SAS server. Is this done using libnames? Is the connection done using libnames with port, login, metadata server name? Is there documentation on this?
If the SAS session in question has access to the directory where the datasets reside, and the library is not metadata-bound, you simply define a LIBNAME.
If you do not have access to the directory via the filesystem, but can establish a SSH session to the target server, just use sftp to copy the sas7bdat file. Unless the target library is encrypted.
I googled metadata bound, I'm still trying to figure it out but I don't think I am using metadata bound libraries because normally in Enterprise Guide I just select my connection and connect to these libraries using libname calls like libname test meta library="test library"; How do I check if I have directory access? I'm using no profile with BASE SAS I found I can switch between metadata servers using.
options metaserver=&metaserver
metaport=8561
metauser="xxx"
metapass="xxx"
metaprotocol=bridge
metarepository=Foundation;
But after connecting I can't call the libraries like I could if I was connected using a profile. The SFTP method sounds great. Is there documentation on this? The SFTP and SAS connect might be the same thing. I'm reading up on SAS connect.
What OS do your SAS servers run on? If they are running Windows then you can easily read data from them from SAS running on your PC by assigning a LIBNAME like so:
libname SASSVR '\\MySASServer\MyServerSASFolder';
The one caveat is you need to be running 64-bit SAS on your PC to match the bitness of your server SAS.
Our servers run on Linux
@DavidPhillips2 - You could use SAS/Connect then as SAS datasets structure is different between Windows and Linux. You could connect to one SAS server using an EG profile then use SAS/Connect to link to another SAS server. We use this technique ourselves and it works very well. SAS/Connect though has to be installed and licensed on both servers.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.