BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
thewan
Quartz | Level 8

Hello SAS users,

 

I background submitted a job but saw that the program had some errors and wanted to take a look at the log file. Where can I find this? I noticed that this page offered a solution but I could not find this directory path.

https://support.sas.com/kb/65/636.html

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
SAS Viya for Learners does not give access to the file system outside of your user home directory, so you would not be able to access that log path. Instead, you can access the log through the Jobs and Flows menu's (gear icon) monitoring tab in SAS Environment Manager (Menu -> Manage Environment -> Jobs and Flows), click the "Download" link next to your job in the Log column.
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

13 REPLIES 13
gwootton
SAS Super FREQ
The path listed in that SAS Note is where the compute server's logs are found (/opt/sas/viya/config/var/log/compsrv/default). If that path is not present you may need to check a different host (the host specified in inventory.ini under [Compute Server] during deployment).
--
Greg Wootton | Principal Systems Technical Support Engineer
thewan
Quartz | Level 8
Would this also apply under SAS Viya learners? This would be the web application. Thank you.
gwootton
SAS Super FREQ
SAS Viya for Learners does not give access to the file system outside of your user home directory, so you would not be able to access that log path. Instead, you can access the log through the Jobs and Flows menu's (gear icon) monitoring tab in SAS Environment Manager (Menu -> Manage Environment -> Jobs and Flows), click the "Download" link next to your job in the Log column.
--
Greg Wootton | Principal Systems Technical Support Engineer
thewan
Quartz | Level 8
Thank you! This was exactly what I was looking for. I noticed that the program had timed out. Is there a time limit for programs submitted under the learners version? Thank you.
gwootton
SAS Super FREQ
I'm not aware of a time limit, how long was the job? I tried submitting a job with a sleep timer in it and it still completed successfully, but that delay was only about 6 minutes.
--
Greg Wootton | Principal Systems Technical Support Engineer
thewan
Quartz | Level 8

The log file says that it timed out. I ran the program from 1pm to 11pm yesterday.

gwootton
SAS Super FREQ
The authentication tokens Viya uses by default are valid for 10 hours, that may be a contributing factor.
--
Greg Wootton | Principal Systems Technical Support Engineer
thewan
Quartz | Level 8
Thank you for letting me know.
thewan
Quartz | Level 8
Just wondering if this can be changed or if this applies to all users even those with a license for SAS Viya? Thank you.
gwootton
SAS Super FREQ
This can be tuned administratively, so outside of Viya for Learners you could adjust the lifetime of the authentication token.
--
Greg Wootton | Principal Systems Technical Support Engineer
thewan
Quartz | Level 8
Ok, that makes sense. Thank you for letting me know.
AllanBowe
Barite | Level 11

If your use case could involve a non-web client submitting background jobs, you might consider the SASjs CLI.

It's a tool my team have developed, that lets you:

 

* Submit a Job & Collect the logs

* Submit a Flow with multiple jobs & dependencies (and collect the logs)

* Create & Deploy Jobs

 

And much more.  Documentation is here:  https://cli.sasjs.io

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
thewan
Quartz | Level 8
This is a really nice tool! Thank you for the link.