<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JobExecute access denied to caslib in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600965#M445</link>
    <description>&lt;P&gt;I don't know how to access the log from JobExecute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code executed in SAS Studio but failed in JobExecute is the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the job error that pops up says that libref casuser is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the log from sas studio is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1572615296267" class="sasNote"&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 /*****************************************************************************/&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 /* Create a default CAS session and create SAS librefs for existing caslibs */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 /* so that they are visible in the SAS Studio Libraries tree. */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;80 /*****************************************************************************/&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;82 cas;&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1572615296267" class="sasNote"&gt;NOTE: The session name identified with the SESSREF= SAS option is connected to Cloud Analytic Services. The default value for&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;SESSREF= is CASAUTO.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;83 caslib _all_ assign;&lt;/DIV&gt;
&lt;DIV id="sasLogNote3_1572615296267" class="sasNote"&gt;NOTE: A SAS Library associated with a caslib can only reference library member names that conform to SAS Library naming conventions.&lt;/DIV&gt;
&lt;DIV id="sasLogNote4_1572615296267" class="sasNote"&gt;NOTE: CASLIB CASUSER XXXXXXXX for session CASAUTO will be mapped to SAS Library CASUSER.&lt;/DIV&gt;
&lt;DIV id="sasLogNote5_1572615296267" class="sasNote"&gt;NOTE: CASLIB Formats for session CASAUTO will be mapped to SAS Library FORMATS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote6_1572615296267" class="sasNote"&gt;NOTE: CASLIB ModelPerformanceData for session CASAUTO will not be mapped to SAS Library ModelPerformanceData. The CASLIB name is&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;not valid for use as a libref.&lt;/DIV&gt;
&lt;DIV id="sasLogNote7_1572615296267" class="sasNote"&gt;NOTE: CASLIB Models for session CASAUTO will be mapped to SAS Library MODELS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote8_1572615296267" class="sasNote"&gt;NOTE: CASLIB Public for session CASAUTO will be mapped to SAS Library PUBLIC.&lt;/DIV&gt;
&lt;DIV id="sasLogNote9_1572615296267" class="sasNote"&gt;NOTE: CASLIB QASMartStore for session CASAUTO will not be mapped to SAS Library QASMartStore. The CASLIB name is not valid for use&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;as a libref.&lt;/DIV&gt;
&lt;DIV id="sasLogNote10_1572615296267" class="sasNote"&gt;NOTE: CASLIB Samples for session CASAUTO will be mapped to SAS Library SAMPLES.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;85 ods graphics on;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;87 proc freq data=sashelp.class;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;88 table sex*age/ plots=mosaicplot out=casuser.frek;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;89 run;&lt;/DIV&gt;
&lt;DIV id="sasLogNote11_1572615296267" class="sasNote"&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote12_1572615296267" class="sasNote"&gt;NOTE: The data set CASUSER.FREK has 11 observations and 4 variables.&lt;/DIV&gt;
&lt;DIV id="sasLogNote13_1572615296267" class="sasNote"&gt;NOTE: The PROCEDURE FREQ printed page 2.&lt;/DIV&gt;
&lt;DIV id="sasLogNote14_1572615296267" class="sasNote"&gt;NOTE: PROCEDURE FREQ used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.36 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.16 seconds&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_104" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas; 
caslib _all_ assign;

ods graphics on;

proc freq data=sashelp.class;
table sex*age/ plots=mosaicplot out=casuser.frek;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2019 13:42:19 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2019-11-01T13:42:19Z</dc:date>
    <item>
      <title>JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600850#M443</link>
      <description>I'm still with the Trial Version of Viya.&lt;BR /&gt;When running job execute it complaints about unknown caslib although the same code works well in sas studio.&lt;BR /&gt;How can I access libs from job execute?</description>
      <pubDate>Thu, 31 Oct 2019 21:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600850#M443</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2019-10-31T21:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600853#M444</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I would like to review the SAS log as well as the CAS server log covering the time when you ran that job.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 22:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600853#M444</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-10-31T22:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600965#M445</link>
      <description>&lt;P&gt;I don't know how to access the log from JobExecute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code executed in SAS Studio but failed in JobExecute is the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the job error that pops up says that libref casuser is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the log from sas studio is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1572615296267" class="sasNote"&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 /*****************************************************************************/&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 /* Create a default CAS session and create SAS librefs for existing caslibs */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 /* so that they are visible in the SAS Studio Libraries tree. */&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;80 /*****************************************************************************/&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;82 cas;&lt;/DIV&gt;
&lt;DIV id="sasLogNote2_1572615296267" class="sasNote"&gt;NOTE: The session name identified with the SESSREF= SAS option is connected to Cloud Analytic Services. The default value for&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;SESSREF= is CASAUTO.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;83 caslib _all_ assign;&lt;/DIV&gt;
&lt;DIV id="sasLogNote3_1572615296267" class="sasNote"&gt;NOTE: A SAS Library associated with a caslib can only reference library member names that conform to SAS Library naming conventions.&lt;/DIV&gt;
&lt;DIV id="sasLogNote4_1572615296267" class="sasNote"&gt;NOTE: CASLIB CASUSER XXXXXXXX for session CASAUTO will be mapped to SAS Library CASUSER.&lt;/DIV&gt;
&lt;DIV id="sasLogNote5_1572615296267" class="sasNote"&gt;NOTE: CASLIB Formats for session CASAUTO will be mapped to SAS Library FORMATS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote6_1572615296267" class="sasNote"&gt;NOTE: CASLIB ModelPerformanceData for session CASAUTO will not be mapped to SAS Library ModelPerformanceData. The CASLIB name is&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;not valid for use as a libref.&lt;/DIV&gt;
&lt;DIV id="sasLogNote7_1572615296267" class="sasNote"&gt;NOTE: CASLIB Models for session CASAUTO will be mapped to SAS Library MODELS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote8_1572615296267" class="sasNote"&gt;NOTE: CASLIB Public for session CASAUTO will be mapped to SAS Library PUBLIC.&lt;/DIV&gt;
&lt;DIV id="sasLogNote9_1572615296267" class="sasNote"&gt;NOTE: CASLIB QASMartStore for session CASAUTO will not be mapped to SAS Library QASMartStore. The CASLIB name is not valid for use&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;as a libref.&lt;/DIV&gt;
&lt;DIV id="sasLogNote10_1572615296267" class="sasNote"&gt;NOTE: CASLIB Samples for session CASAUTO will be mapped to SAS Library SAMPLES.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;85 ods graphics on;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;87 proc freq data=sashelp.class;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;88 table sex*age/ plots=mosaicplot out=casuser.frek;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;89 run;&lt;/DIV&gt;
&lt;DIV id="sasLogNote11_1572615296267" class="sasNote"&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote12_1572615296267" class="sasNote"&gt;NOTE: The data set CASUSER.FREK has 11 observations and 4 variables.&lt;/DIV&gt;
&lt;DIV id="sasLogNote13_1572615296267" class="sasNote"&gt;NOTE: The PROCEDURE FREQ printed page 2.&lt;/DIV&gt;
&lt;DIV id="sasLogNote14_1572615296267" class="sasNote"&gt;NOTE: PROCEDURE FREQ used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.36 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.16 seconds&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_104" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas; 
caslib _all_ assign;

ods graphics on;

proc freq data=sashelp.class;
table sex*age/ plots=mosaicplot out=casuser.frek;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 13:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600965#M445</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2019-11-01T13:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600973#M446</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you created a schedule for your job, what user did you specify in "Run as"? Also, I wasn't able to start a job in SAS Job Execution that connects to the CAS server without specifying CASHOST and CASPORT as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options cashost="&amp;lt;FQDN_OF_YOUR_CAS_SERVER&amp;gt;" casport=5570;
cas; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Nov 2019 14:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600973#M446</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-11-01T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600981#M447</link>
      <description>I think we're getting closer.&lt;BR /&gt;&lt;BR /&gt;Under &lt;BR /&gt;&lt;A href="https://pdcesx19027.sas.com/SASJobExecution/" target="_blank"&gt;https://pdcesx19027.sas.com/SASJobExecution/&lt;/A&gt;&lt;BR /&gt;I think I don't have the options "run as".&lt;BR /&gt;&lt;BR /&gt;And excuse my ignorance, but how do I retrieve the cashost name?&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Nov 2019 14:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600981#M447</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2019-11-01T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600982#M448</link>
      <description>perhaps this error message shows the way&lt;BR /&gt;&lt;BR /&gt;{"errorCode":403,"message":"Invalid CSRF Token 'd5aeca9d-9a8f-406b-905b-057157ed3bf0' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN'.","details":["path: /SASJobExecution/"],"links":[],"version":2,"httpStatusCode":403}</description>
      <pubDate>Fri, 01 Nov 2019 14:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/600982#M448</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2019-11-01T14:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/601043#M449</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I think I don't have the options "run as".&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have to go to the Jobs menu and schedule that job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://pdcesx19027.sas.com/SASEnvironmentManager/jobs" target="_blank" rel="noopener"&gt;https://pdcesx19027.sas.com/SASEnvironmentManager/jobs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="schedule_a_job.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33583i25BE02F4E8874D34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schedule_a_job.png" alt="schedule_a_job.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;but how do I retrieve the cashost name?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Check your inventory file if you do not know where the CAS server has been installed.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 18:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/601043#M449</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2019-11-01T18:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: JobExecute access denied to caslib</title>
      <link>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/630861#M561</link>
      <description>&lt;P&gt;that worked for me, thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/JobExecute-access-denied-to-caslib/m-p/630861#M561</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-03-10T11:27:34Z</dc:date>
    </item>
  </channel>
</rss>

