Section 5 Listner Input Formats
5-30
5.3.5 <STRING PROGRAM DATA>
<STRING PROGRAM DATA> is program data consisting of only character strings. All ASCII 7-bit codes can be
used. When a character string includes single or double quotation marks, two identical quotation marks must be
written in succession per quotation mark.
<inserted'>
<non-single
quote char>
'
'
'
"
<inserted">
<non-double
quote char>
"
"
● A character string must be enclosed with single or double quotation marks irrespective of whether the character
string contains any quotation mark. For example,
It’s a nice day. → "It’s a nice day."
→ :'It’ 's a nice day.'
● When a character string is enclosed with single quotation marks, each single quotation mark contained in the
character string must be doubled. Other characters, including double quotation marks, must be written as they
are. For example,
"I shouted` 'Shame'." → '"I shouted`' 'Shame' '." '
● When a character string is enclosed with double quotation marks, these double quotation marks must be
doubled. Other characters, including single quotation marks, must be written as they are. For example,
"I shouted` 'Shame'." → """I shouted` 'Shame'."""
● <inserted '> is an single ASCII code set in ASCII code byte 27 (decimal 39 = symbol '). <inserted "> is a single
ASCII code set in ASCII code byte 22 (decimal 34 = symbol "). <non-single quote char> and <non-double
quote char> are single ASCII codes other than single and double quotation marks.