Hello,
I'm new to SAS and just wanted to get a few concepts right, googling hasn't helped so far.
I run my codes on SAS EG which is connected to SASApp or SAS Metadata server.
Is SASApp a local or a remote server?
When I use winscp, I understand that the left hand side is the local machine and the right hand side is unix. On the right hand side I have a folder called sasuserhome and every user has their individual sasuserhome folders. Is this sasuserhome folder located on local or remote server?
And then there are the actual sasgrid folders that I understand are remote servers where all the production files usually go. How do I transfer files from the sasuserhome server to this sasgrid server? I tried using x cp command but that seems to be not working. Is proc export the way to go here?
Thank you.
Yeah so this is what I did, and looks like it works.
Just got into properties, under code submission selected use grid if available.
SASApp is remote .
Sounds like your sasuserhome is remote .
Before you start writing to where 'production files usually go' suggest you talk to your Unix administrators .
If you are copying files you could theoretically do that within winscp if you had the correct permissions.
Or if copying SAS datasets you could do that using a libname. Depends what you are trying to do .
I was able to create the log file in sasuserhome location using 'proc printto log = [path of sasuserhome location]' command but now I need to make sure everyone else can access them, so I need to move them to the sasgrid location to which everyone has access. I tried x cp for doing that but that didn't work. Was wondering how can I make such transfers.?
I tried replacing the sasuserhome path with the sasgrid path in the 'proc printto log' command hoping the log files would directly be created in the sasgrid and I wouldn't have to transfer, but then no files were created at all.
@AJ_Brien wrote:
I was able to create the log file in sasuserhome location using 'proc printto log = [path of sasuserhome location]' command but now I need to make sure everyone else can access them, so I need to move them to the sasgrid location to which everyone has access. I tried x cp for doing that but that didn't work. Was wondering how can I make such transfers.?
I tried replacing the sasuserhome path with the sasgrid path in the 'proc printto log' command hoping the log files would directly be created in the sasgrid and I wouldn't have to transfer, but then no files were created at all.
"didn't work" means anything or nothing, please post the error message. To get a solution working in your environment you should talk to your it-staff.
I'm sorry, when I used x cp, then nothing happened.
I have raised a request to get IT support but this usually takes weeks (if they ever contact back), I really can't count on them for any help/ guidance.
Is there any specific question that you have that I can try answering that would help you help me? 🙂
Another thing I noticed, when I try to directly write into the file on the sas grid folder (the one that is accessed by everyone), I get the error: physical file does not exist.
I even tried reading a dataset from that sas grid location and got the same error. However I can access that location through winscp. Is there anything specific I need to do to access that location through my SAS EG code?
Yeah so this is what I did, and looks like it works.
Just got into properties, under code submission selected use grid if available.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.