Previous Topic: &ZTCPSUPP

Next Topic: System Variables


&ZUNQUOTE

Removes one level of quotes from a string.

&ZUNQUOTE text ...  text

&ZUNQUOTE is used to reverse the quoting procedures performed by &ZQUOTE. &ZUNQUOTE is a built-in function and must be used to the right of an assignment statement. If the input data is null, the nominated variable will be set to null.

Return Codes:

The system variable &ZFDBK is set to indicate the success or failure of the unquoting procedure:

0

Unquote was successful

4

Data error occurred. For example, the string is too long for one NCL variable. The input is copied to the output variable, without change.

Examples: &ZUNQUOTE

& A = &STR 'say “G''day”'
&B = &ZUNQUOTE &A           -* &B will set to say “G'day”
&C = &ZUNQUOTE &B           -* &C will be the same as &B since
-* there are no more levels of quoting
&D = &ZUNQUOTE 'say “G'day”'-* Will result in &ZFDBK=4
                            -* and &D set to 'say “G'day”'

Note: For a definition of a quoted string, see description of &ZQUOTE .

More information:

&ZQUOTE/&ZQUOTE2