SAS 9.1.3 Integration Technologies » Developer's Guide


SAS Stored Processes
Software Requirements
Creating Stored Processes
Input Parameters
Result Types
%STPBEGIN and %STPEND
Reserved Macro Variables
Stored Process Server Functions
Sessions
Samples
Debugging
Converting SAS/IntrNet Programs
Using Stored Processes
Building a Web Application
SAS Stored Process Web Application
Configuration
Input
HTTP Headers
Embedding Graphics
Chaining Stored Processes
Using Sessions
Debugging
IOM Direct Interface Stored Processes
SAS Stored Processes

STPSRV_UNQUOTE2


Unmasks quotation mark characters in an input parameter

Syntax
Arguments
Details
Example


Syntax

call STPSRV_UNQUOTE2( paramname )


Arguments

paramname
is the character string name of the parameter.

Details

The 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.


Example

This 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;
   ...