BookmarkSubscribeRSS Feed
JAE2019
Fluorite | Level 6

Hi Experts!

 

I understand SAS Viya Jobs can get input parameter values from the (1) URL:

 

https://documentation.sas.com/doc/en/jobexeccdc/v_004/jobexecug/n0zbw74vpejkqsn1hq1leqlgrrcg.htm

JAE2019_1-1749598277090.png

 

or from a (2) prompt/html form:

https://documentation.sas.com/doc/en/jobexeccdc/v_004/jobexecug/p169gfaxth918ln1c6w5hiqz3ngu.htm

JAE2019_0-1749598239306.png

Is it actually possible to pass parameters to a SAS Viya job first form the URL -> then to the HTML form -> then both set of paramers get passed to the sas code? How can we achieve this?

 

such that if I call my URL Job from my iframe like this: 

 

https://<domain>/SASJobExecution/?_program=%2FFOLDERNAME%2FJOBNAME&paramter1=value

 

the job can recognize the value declared for parameter1, and at the same time, still allow users to select the value for parameter2 (via HTML form).

 

This is because my SAS Viya Job is embedded in an ifram within SAS Visual Investigator where SAS VI passes a parameter1 to the SAS Viya Job. But at the same time, we were hoping to use the HTML form to still allow the users to select a value for parameter2. Then I want to execute the SAS Viya job based on parameter1 and parameter2.

 

Looking forward to your recommendations! Thank you!

1 REPLY 1
JAE2019
Fluorite | Level 6

To add, parameter1 is getting passed to the SAS Viya Job properly through URL parameter value declarations. But when I add an HTML form with parameter 2, only parameter2 gets passed to the SAS Code, and parameter1 resolves as null.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Discussion stats
  • 1 reply
  • 382 views
  • 0 likes
  • 1 in conversation