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:
Unquote was successful
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 .
| Copyright © 2009 CA. All rights reserved. |
|