So you modified the SAS EG character formatted constraints to resolve automatically with surrounding single-quotes. (Seen below from Stored Process Wizard and Management Console screens.)
Of course, the pain now is trying to pass dynamic parameters through the %stpbegin & %stpend statements. To resolve the single-quotes, use the code: %SYSCALL STPSRV_UNQUOTE2(severity);
Of course, since this parameter is multiple choice, you need to run the %SYSCALL step on each instance:
%if %SYMGLOBL(severity) > 0 %then %do; %if %SYMGLOBL(severity0) EQ 0 %then %do; %SYSCALL STPSRV_UNQUOTE2(severity); %end; %else %do i=1 %to &severity0; %SYSCALL STPSRV_UNQUOTE2(severity&i;); %end; %end;