BookmarkSubscribeRSS Feed
jbkm
Fluorite | Level 6

Hello,

 

In SAS IRM there is a macro called  irm_rest_get_request that helps retrieving run instances information.

I am calling that macro in a script as follows:

 

%irm_rest_get_request(url = &host.:&port./SASIRM/rest/jobflow/instancesinfo?entity=0%str(&)definition=0

, server = SASIRM

, username = &userid.

, password = &pwd.

, authMethod = token

, parser = irmRestInstances

, outds = WORK.instances_info

, outVarTicket = ticket

, restartLUA = Y

, debug = true

, logOptions = &logOptions.

);

 

where, of course, &host, &port, &userid, &pwd and &logOptions are pre-assigned.

 

I getting a weird error, here is a piece of the log:

 

MLOGIC(RSK_CALL_RISKEXEC) : %GLOBAL _RISKEXEC_RC_ _RISKEXEC_RETURN_VALUE1_

MLOGIC(RSK_CALL_RISKEXEC) : %LET (le nom de la variable est _RISKEXEC_RC_)

MLOGIC(RSK_CALL_RISKEXEC) : %LET (le nom de la variable est _RISKEXEC_RETURN_VALUE1_)

MLOGIC(RSK_CALL_RISKEXEC) : %GLOBAL _RISKEXEC_INVOKER

MLOGIC(RSK_CALL_RISKEXEC) : %LET (le nom de la variable est _RISKEXEC_INVOKER)

SYMBOLGEN: La macro-variable INVOKER est résolue en sas.risk.rmx.rsk_module_function_invoker

MLOGIC(RSK_CALL_RISKEXEC) : %LOCAL _RISKEXEC_ENTRYPOINT

MLOGIC(RSK_CALL_RISKEXEC) : %LET (le nom de la variable est _RISKEXEC_ENTRYPOINT)

MLOGIC(RSK_CALL_RISKEXEC) : %PUT NOTE: restartLUA was set to &restartLUA.

SYMBOLGEN: La macro-variable RESTARTLUA est résolue en Y

NOTE: restartLUA was set to Y

MLOGIC(RSK_CALL_RISKEXEC) : %PUT NOTE: _RISKEXEC_RC_ (before lua call) is &_RISKEXEC_RC_

SYMBOLGEN: La macro-variable _RISKEXEC_RC_ est résolue en -2

NOTE: _RISKEXEC_RC_ (before lua call) is -2

SYMBOLGEN: La macro-variable RESTARTLUA est résolue en Y

MLOGIC(RSK_CALL_RISKEXEC) : La condition %IF &restartlua = Y est TRUE

MPRINT(IRM_REST_GET_REQUEST.RSK_CALL_RISKEXEC): proc lua infile='entry_point_caller' restart;

MPRINT(IRM_REST_GET_REQUEST.RSK_CALL_RISKEXEC): run;

5 Le Système SAS 14:00 Tuesday, October 1, 2019

NOTE: Lua terminated.

NOTE: Previous Lua state destroyed.

NOTE: Lua initialized.

entry_point_caller is calling: sas.risk.utils.sas_macro_entrypoint

--------------------

Entering Lua 5.2

--------------------

options linesize=max;

Recovering Lua state prior to running sas.risk.irm.irm_rest_parser.irmRestInstances ...

---------------------------------------------------------------------------

Calling Lua function sas.risk.irm.irm_rest_parser.irmRestInstances() with arguments:

[1]=out

[2]=WORK.instances_info

---------------------------------------------------------------------------

1 Le Système SAS 10:25 Friday, October 4, 2019

NOTE: The infile OUT is:

Nom du fichier=E:\SASWORK\_TD14252_SRVSAS_\#LN01074,

RECFM=F,LRECL=1024,

Taille de fichier (octets)=8348,

Modifié(e) le=04 octobre 2019 10 h 25,

Heure de création=04 octobre 2019 10 h 25

NOTE: 9 records were read from the infile OUT.

NOTE: The data set WORK.__TMPJSON__ has 9 observations and 1 variables.

NOTE: Compressing data set WORK.__TMPJSON__ increased size by 100.00 percent.

Compressed is 2 pages; un-compressed would require 1 pages.

NOTE: DATA statement used (Total process time):

real time 0.01 seconds

cpu time 0.01 seconds

 

NOTE: Deleting WORK.__TMPJSON__ (memtype=DATA).

NOTE: PROCEDURE DATASETS used (Total process time):

real time 0.01 seconds

cpu time 0.00 seconds

 

WARNING: Could not determine message file for message key 'html passed to JSON:decode(): <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" class="bg"> <head> <meta charset="UTF-8" /> <link rel="shortcut icon"

href="themes/default/images/favicon.ico" /> <title> SAS&reg; Logon Manager </title> <!-- [if IE 9] --> <link type="text/css" rel="stylesheet" href="themes/default/css/sas_ie.css" />

<link type="text/css" rel="stylesheet" href="themes/default/css/sas.css" /> <meta name="viewport" content="initial-scale=1" /></head> <div id="nonModal" class="block"> <img src="themes/default/images/transparent.png"

class="logo" alt="" /><!--customizable logo--> <h1 class="logotext" alt="">Sign In to SAS<sup class="reg">&#174;</sup></h1><!--Sign In to SAS--> <!--~~~~~~~~~~~~~~~~~~~~~MESSAGE CONTAINER~~~~~~~~~~~~~~~~~~~~~--> <div

class="message" style='display:none;' id="nocookie-message" aria-hidden="true"> <h2 class="primary">This application requires that your browser accept cookies.</h2> <p class="secondary">Change your browser settings

accordingly.</p> </div> <!--~~~~~~~~~~~~~~~~~~~~~MAIN CONTAINER~~~~~~~~~~~~~~~~~~~~~--> <div id="loginbox"> <form id="fm1" class="minimal"

action="/SASLogon/login;069816a51a088b9e1ed13981d62c6934_Cluster1=E5BFBB75BA0C9C885FA50276BBA9C838.069816a51a088b9e1ed13981d62c6934_SASServer1_1?service=http.0.0srvsasva.scr.co.ma.0SASIRM.0j_spring_cas_security_check" method="post"><!--form

container--> <label for="username" id="username1">User ID:</label> <input id="username" name="username" tabindex="3" aria-labelledby="username1 message1 message2 message3" autofocus="true" type="text" value=""

autocomplete="off"/> <label for="password">Password:</label> <input id="password" name="password" tabindex="4" type="password" value="" size="25" autocomplete="off"/> <input type="hidden"

name="lt" value="LT-159-3LpJKmhs3RHlPLYvGVlTD1DaFew7tN" aria-hidden="true" /> <input type="hidden" name="execution" value="e1s1" aria-hidden="true" /> <input type="hidden" name="_eventId" value="submit"

aria-hidden="true" /> <button type="submit" class="btn-submit" title="Sign In" onClick="this.disabled=true;setSubmitUrl(this.form);this.form.submit();return false;">Sign In</button> <div

class="aboutcontainer"> <!--about link--> <a href="#openModal" onClick="$('#openModal').show()" class="about" title="About">About</a> <div class="copyright"><!--copyright statement--> &copy;

2002-2015 SAS Institute Inc.</div> <img src="themes/default/images/saslogo.svg" class="saslogo" /> </div> </form> </div> </div> <!--~~~~~~~~~~~~~~~~~~~~~ABOUT DIALOG

MODAL CONTENT~~~~~~~~~~~~~~~~~--><div id="openModal" class="modalDialog" style="z-index: 9999;"><!--modal container--> <div> <div class="test"> <div>&rlm;</div> <div><a href="" onClick="$('#openModal').hide();"

title="Done" class="done">Done</a></div><!--done button--> </div> <!-- about dialog content --> <br /> <p>Product name: SAS<sup>&reg;</sup> Logon Manager</p> <p>Release: 9.4</p> <h2>Legal Notices</h2>

<p>Copyright 2002-2015, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. This software is protected by copyright laws and international treaties.</p> <h3>U.S. Government Restricted Rights</h3> <p>Use, duplication or

disclosure of this software and related documentation by the United States government is subject to the license terms of the Agreement with SAS Institute Inc. pursuant to, as applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a) and

DFAR 227.7202-4 and, to the extent required under United States federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007).</p> <h3>Third-Party Software Usage</h3> <h4>Central Authentication Service</h4>

<p>Copyright &copy; 2007, JA-SIG, Inc. All rights reserved.</p> <p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p> <ul>

<li><p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p></li> <li><p>Redistributions in binary form must reproduce the above copyright notice, this list of

conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p></li> <li><p>Neither the name of the JA-SIG, Inc. nor the names of its contributors may be used to endorse or promote

products derived from this software without specific prior written permission.</p></li> </ul> <p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT

NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,

SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF

LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p> <p><a

href="https://www.apereo.org/cas/license" style="color:white" target="_blank">https://www.apereo.org/cas/license</a></p> </div></div> <script type="text/javascript"

src="/SASLogon/js/jquery.js;069816a51a088b9e1ed13981d62c6934_Cluster1=E5BFBB75BA0C9C885FA50276BBA9C838.069816a51a088b9e1ed13981d62c6934_SASServer1_1"></script><script type="text/javascript"> $(document).on('keydown', function(e)

{ if (e.keyCode === 27) { $('#openModal').hide(); document.location.href = ''; return false; } });</script><script type="text/javascript">

function setSubmitUrl(form) { var urlHash = decodeURIComponent(window.location.hash); if (urlHash && urlHash.indexOf("#") === -1) urlHash = "#" + urlHash; form.action = form.action + urlHash;

return true; } function are_cookies_enabled() { var cookieEnabled = (navigator.cookieEnabled) ? true : false; if (typeof navigator.cookieEnabled == "undefined") { document.cookie="testcookie";

cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? true : false; } if (!cookieEnabled) { document.getElementById("nocookie-message").setAttribute("aria-hidden", "false");

var username = document.getElementById("username"); username.setAttribute("aria-labelledby", username.getAttribute("aria-labelledby") + " nocookie-message"); $('#nocookie-message').show(); } }

$(document).ready(function() { are_cookies_enabled(); }); function modality() { switch(location.hash) { case "#openModal" : $('#nonModal :input').attr('disabled', true);

document.getElementById("nonModal").setAttribute("aria-hidden","true"); document.getElementById("openModal").setAttribute("aria-hidden","false"); break; default :

$('#nonModal :input').attr('disabled', false); document.getElementById("nonModal").setAttribute("aria-hidden","false"); document.getElementById("openModal").setAttribute("aria-hidden","true");

break; } } window.onhashchange = modality; modality();</script></html>'

2 Le Système SAS 10:25 Friday, October 4, 2019

 

ERROR: Invalid data set name.

%rsk_report_error(error=html passed to JSON:decode():

 

 

Anyone has an idea of what is going wrong ?

 

Kind regards,

jbkm

2 REPLIES 2
zina_stewart
SAS Moderator

Hi JBKM --

 

I will see if I can find someone who can answer your question. Stay tuned..... 

 

thanks!

zina

zina_stewart
SAS Moderator

Hi JBKM - 

 

It has been determined that this is a complicated issue - so the recommendation is to contact technical support for assistance.

 

Here is the technical support contact page:

 

https://support.sas.com/en/technical-support/contact-sas.html

 

Thank you,

Zina