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.

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
  • 2 replies
  • 1159 views
  • 0 likes
  • 2 in conversation