something weird that i need you guys help pls
1. program in loop to delete data from a cas table
2. if the loop less than 10 , the program was able to executed nicely
3. if more , the looping goes by day in few month , then the misbehavior happens , it seems locking happened to the cas table .
4. do the syserrortext it shown this
5. it is not a parallel run process , it is looping, one by one it hitting the table to delete some records.
6. noticed similar happened when another program keep append 1 record to the cas table.
7. record size is small , less than 100 record ,
SYSERRORTEXT=The request to start or connect to a session failed. Specify a UUID to connect to an existing session or specify a
session name, port and host name to start a session.
Have you had a chance to check the CAS server logs?
sorry , where does the log locate ?
the error i observed from studio and the
is there any option i need to add into the code to prevent such issues ?
thanks
Your log shows this: "The session is busy running actions that where submitted with the ASYNC= option.".
Is there a particular reason for you to use the ASYNC= option?
here the code :
i wrote the common macro , and the macro was called in the loop .
further questions:
1. what is conditional that cas table will be flushed from memory ? i did one step to save the sashdat .
2. but i notice if i didnt load back the cas table from sashdat in momory , and execute my code the data will be replaced with the new data instead from recovery . any precaution step i can do ?
thank @BrunoMueller
further questions
3.and i tried to add cas session into the auto exec but it does not seem working , is there particular reason why it does not work in autoexec file ?
Add the code as image is not very helpful, it is better to either use the "insert code" or "insert SAS code" from the toolbar when adding code.
We also see only parts of the code and not the complete code. Adding the complete log will help as well.
A description of what you want to achieve helps as well in understanding.
You are using the UUIDMAC= option on the CAS statement, any particular reason for this?
I have the similiar issue. here is my code.
cas mySession1 sessopts=(caslib=casuser timeout=1800 locale="en_US"); /*Assign all caslibs*/ caslib _ALL_ assign; PROC FEDSQL sessref=mySession1 label; SELECT COUNT (col1) FROM table; quit;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!