BookmarkSubscribeRSS Feed
david_wang
Calcite | Level 5

hi,

    I found in some old documentation, the code below can be executed, but in viya 3.4, it leads to errors.How can I change the code to get the same result? many 3x! the code below is to explain the usage of async and sync.

 

proc cas;

      action sessionid result=uuid_2 status=mystatus_2

               async=asyncstatus;

      print "before sync: uuid_2=" uuid_2 " mystatus_2="

               mystatus_2;

      sync asyncstatus;

      print " after sync: uuid_2=" uuid_2 " mystatus_2="

               mystatus_2;

run;

 

2 REPLIES 2
ChrisLysholm
SAS Employee

Hello,

 

I can find no documentation at Viya 3.3 or 3.4 regarding a "sync" cas action or "sync" casl statement.

In my Viya 3.4 environment, the satement "sync asyncstatus;" is causing this error:

 

ERROR: The action 'sync' was not submitted.
ERROR: Operand is not a list
ERROR: sync asyncstatus ;
ERROR: ^
ERROR: Execution halted

 

But this code worked for you at Viya 3.3 ?

david_wang
Calcite | Level 5

Thanks for your help! the documentation I metioned above is not official, maybe it get something wrong I think.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

Discussion stats
  • 2 replies
  • 1374 views
  • 0 likes
  • 2 in conversation