How can assign a library that is on a 9.4 server in sas viya?
At the moment it seems I can either
But none of the above lets me upload data from Viya to CAS in a SAS program, which is what I need. I want to set up a schedules program in Viya that uploads a dataset from a 9.4 libname on another server to CAS. E.g. the code that actually runs in the background when I upload the data from Manage Data.
Trying to assign the libname as normal does not work, I get a message saying the library does not exist.
libname nine4 "//someserver/somefolder"
This
//someserver/somefolder
is not a valid unix path (or Windows path for that matter).
You might want to try
"smb://someserver/somefolder"
@Ullsokk - If your Viya server runs on linux (most common) and you are pointing to a Windows SAS 4 library it isn't likely to work because of OS differences and / or the linux server not having a folder share with your Windows server.
BTW @ChrisNZ is correct. On Windows your path should be specified with back slashes: \\MyServer\MyFolder.
The samba protocol is what's used in linux to reference UNC paths. Of course, feel free to ask questions and disregard answers. 🙂
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.