The _action parameter is a powerful and flexible input used in the SAS Job Execution Web Application to control how jobs are executed, displayed, and managed. By specifying different values for _action, users can tailor the behavior of job execution to fit a wide range of scenarios, from displaying input forms to running jobs in the background or retrieving previous results.
Below, we detail each supported value for the _action parameter, as described in the official SAS documentation, and explain its usage.
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=execute
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=form
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=prompts
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=background
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=wait
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=lastjob
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=schedule
http://host:port/SASJobExecution/?_program=/SomeFolder/MyJob&_action=json
The _ACTION parameter can be set in several ways:
If you specify a value for _ACTION in the URL, it overrides any value set as a job definition parameter.
You can specify multiple comma-separated values for _ACTION to combine behaviors. For example:
| Value | Description |
|---|---|
| execute | Executes the job immediately |
| form | Displays an HTML input form before execution |
| prompts | Displays a prompt file before execution |
| background | Executes the job in the background |
| wait | Displays a wait screen during execution |
| lastjob | Displays previous job output if available |
| schedule | Prepares the job for scheduling |
| json | Returns job/output information in JSON format |
The _action parameter is central to customizing how jobs are run and managed in the SAS Job Execution Web Application. By understanding and using the available values, users can create interactive, efficient, and user-friendly job execution workflows tailored to their needs. You can for example use the form value to display an HTML form and populate the src property of an iframe with the execute value to display both the form and the results on the same page. Mastering the _action parameter will clearly help you to build more advanced applications and tailor the Job Execution web application to your needs.
Find more articles from SAS Global Enablement and Learning here.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.