In the code provided you are loading from a SAS library (load data=). If you do it in the visual interface, you are loading from the caslib physical level (in CAS called file).
So I would change the code similar to this:
proc casutil;
droptable incaslib="casuser" casdata="sugus_citiday" quiet;
run;
load
incaslib="casuser" casdata="SUGUS_CITIDAY.sashdat"
outcaslib="casuser" casout="sugus_citiday"
promote
;
run;
quit;
You will need to adapt it to your case: caslib name, file to load, name of CAS table. Please note for the casdata= option the file name is case sensitive. You can use this code to see all the files in a caslib:
proc casutil;
list files incaslib="casuser";
run;
quit;
... View more