SAS Stored Processes
STPSRV_UNQUOTE2Unmasks quotation mark characters in an input parameter
Syntax Syntaxcall STPSRV_UNQUOTE2( paramname ) Arguments
DetailsThe STPSRV_UNQUOTE2 call routine takes the name of an input parameter (or any global macro variable) and unmasks matched pairs of single or double quotation marks. The call routine does not return a value; instead it modifies the specified macro variable. This call routine can be used to selectively remove quotation marks from stored process input parameters so that they can be used in statements that require quotation mark characters. ExampleThis call routine is typically called with %SYSCALL in open macro code, as follows: /* MYGOPTIONS is an input parameter and might contain quotation marks, for example: dashline='c000000000000000'x */ %SYSCALL STPSRV_UNQUOTE2(MYGOPTIONS); /* Quote characters are now interpreted as expected */ goptions &MYGOPTIONS; ... |