Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Character string format z/OS DFSORT Application Programming Guide SC23-6878-00 |
||||||||||||||||||||||||||||
The format for coding a character string constant is: C'xx...x' The value x may be any EBCDIC character (the EBCDIC character string is translated appropriately for comparison to an AC or AQ field). You can specify up to 256 characters. If you want to include a single apostrophe in the character string,
you must specify it as two single apostrophes. Thus:
Examples of valid and invalid character string constants are shown in Table 1:
Double-byte data may be used in a character string for INCLUDE/OMIT comparisons. The start of double-byte data is delimited by the shift-out (SO) control character (X'0E'), and the end by the shift-in (SI) control character (X'0F'). SO and SI control characters are part of the character string and must be paired with zero or an even number of intervening bytes. Nested shift codes are not allowed. All characters between SO and SI must be valid double-byte characters. No single-byte meaning is drawn from the double-byte data. Examples of valid and invalid character string constants containing
double-byte characters are shown in Table 2 using:
Tip: X'0E', X'0F',
and X'7D' are treated as the special characters shift-out,
shift-in, and single apostrophe in a character string. If you don't
want to treat one or more of these characters as special in a particular
value, use a hexadecimal string instead of a character string. For
example, if you want to treat the binary value 000E0E7D as its decimal
equivalent of 921213, use X'000E0E7D'; 0E will not be treated
as shift-out and 7D will not be treated as a single apostrophe.
|
Copyright IBM Corporation 1990, 2014
|