ACTIONQ Function
Displays the action queue.
Table of Contents
Syntax
Form 1:
Without Arguments
You can specify the ACTIONQ function without arguments. If no arguments are specified, then the function returns the current, active session.
Optional Arguments
session-reference
specifies the name of the session in which actions are queued.
| Example | Displaying the Action Queue |
yes
specifies the connection ID and the sequence number are displayed in the output.
| Default | no |
|---|---|
| Example | Displaying the Action Queue with the Yes Argument |
Details
CASL enables you to submit an action asynchronously to the server. If the action is executing for the session in which it was submitted, then the action is placed in the action queue. You can submit as many actions as you need, but only one action executes at a time. The remaining actions execute in the order in which they were placed in the queue.
Examples
Example 1: Displaying the Action Queue
cas mySession1;
proc cas;
session mysession1;
listsession async="action1"; run;
listsession async="action2"; run;
listsession async="action3"; run;
listsession async="action4"; run;
print actionq("mysession1"); run;
quit;
Action Queue Results

Example 2: Displaying the Action Queue with the Yes Argument
cas mySession1;
proc cas;
session mysession1;
listsession async="action1"; run;
listsession async="action2"; run;
listsession async="action3"; run;
listsession async="action4"; run;
print actionq("mysession1", "yes"); run;
quit;
Action Queue Results
