ACTIONQ Function

Displays the action queue.

Syntax

Form 1:

ACTIONQ(<"session-reference ">, <"yes">);

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.

Note: If the session name is not provided then the current, active session is used.
Displaying the Action Queue

yes

specifies the connection ID and the sequence number are displayed in the output.

Defaultno
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

Action Queue Results
Note: The ASYNC= option enables you to submit multiple requests to the server. If your requests are in the same session, the requests are queued in the order received. If your requests are in separate sessions, the requests are executed in parallel.

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

Action Queue Results
Last updated: August 18, 2026