I'd like to be able to assign a "default" CLIENTUSERID when the SAS scheduler runs. I've tried to use coalesce but it doesn't work:
%LET USER_ID=%SYSFUNC(COALESCEC(&_CLIENTUSERID,'123456'));
%PUT &USER_ID;
WARNING: Apparent symbolic reference _CLIENTUSERID not resolved.
Just make sure the macro variable exists before trying to reference it.
%global _clientuserid user_id;
%let user_id=%scan(&_clientuserid 123456,1,%str( ));
%put &=user_id;