Specifying Character Strings
Some tags and syntaxes include parameters with character string values. In most cases, you can specify the string in one or more of the formats listed below. The table lists the valid specification syntax for each format.
Note: If the string contains quotes, you must double the internal quotes or Enrichment assumes they terminate the string.
Format | Valid Syntax | Notes |
---|---|---|
Literal String |
text or 'text text' or "text text" |
If the literal string contains spaces or punctuation other than _ and :, you must enclose it in single or double quotes. If the literal string contains extended ASCII characters 0x80 - 0xFF, you must enclose it in single or double quotes. For mainframe, literal strings are stored in EBCDIC format. For UNIX, Linux, and Windows, literal strings are stored in ASCII format. |
ASCII | A'string' or a'string' | |
Binary | B'string' or b'string' | Binary strings can contain only the characters 0 and 1. |
EBCDIC | E'string' or e'string' | |
Hexadecimal | X'string' or x'string' | Hexadecimal strings can contain only the numbers 0 through 9 and the letters A through F. |
Symbolic | s'string' or s'x=# y=#' | A symbolic string can be any mnemonic AFP structured field ID. Space can be a delimiter in 'x=# y=#'. You can insert 'x=# y=#' or just one of the values. |