GDDM V3R2 Base Application Programming Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Strings

GDDM V3R2 Base Application Programming Reference
SC33-0868-02



GDDM-REXX lets you pass a character string that contains DBCS (double-byte character set) characters. They must be between Shift-out and Shift-in (SO/SI) brackets. (SO = X'0E' and SI = X'0F'.) It is an error if an unmatched SO occurs in a string.

Under certain circumstances, strings or token parameters may be entered without quotes. However, you are recommended to enclose strings and token parameters in quotes in all cases. Parsing can be interrupted if you omit required quotes.

The following example shows strings containing special characters enclosed in matching quotes.


     /* string containing blanks       */
     s = 'a b c'
     'GSCHAR 30 50 5' s
     /* "s" is evaluated - the command */
     /* passed to GDDM after evaluation*/
     /* is 'GSCHAR 30 50 5 a b c'      */
     /* which has too many parameters  */

Character strings that contain blanks or DBCS characters can be passed in variables without the need for any special GDDM-REXX string delimiters. However, the system interpreter requires an OPTIONS ETMODE statement before the SO/SI characters in literal strings or comment statements.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012