Strings and text
Alphanumeric fields and the padding a MOVE gives them, INSPECT, STRING and UNSTRING, reference modification and the intrinsic string functions. ACCEPT and DISPLAY, text that becomes a number and back, and a CSV line split into fields come next. The part ends on code pages and on what a UTF-8 literal does here.
4.1
Alphanumeric fields and padding
PIC X, space padding at MOVE, LENGTH OF, trailing spaces and a comparison that surprises
Open
4.2
INSPECT TALLYING
BEFORE and AFTER, ALL, and counting the characters of a line
Open
4.3
INSPECT REPLACING and CONVERTING
REPLACING ALL, CONVERTING, and a case change done character by character
Open
4.4
STRING with POINTER
DELIMITED BY SIZE and SPACE, WITH POINTER, ON OVERFLOW, and a line built from fields
Open
4.5
UNSTRING with delimiters
DELIMITED BY, COUNT IN, TALLYING IN, and a CSV field split into four
Open
4.6
Reference modification
field(start:length), taking a substring, and the bounds that 3.2 checks
Open
4.7
TRIM, UPPER-CASE and LOWER-CASE
FUNCTION TRIM, UPPER-CASE, LOWER-CASE and LENGTH, and a name normalised for a key
Open
4.8
ACCEPT and DISPLAY
DISPLAY with NO ADVANCING, ACCEPT from standard input, a prompt, and a screen section named
Open
4.9
Text to number and back
FUNCTION NUMVAL, NUMVAL-C, MOVE into PIC 9, and a field that does not parse
Open
4.10
Parsing a CSV line
UNSTRING, a quoted field, a numeric field that fails, and the line number in the message
Open
4.11
ASCII, EBCDIC and UTF-8
code pages, ASCII and EBCDIC in SPECIAL-NAMES, and what 3.2 does with a UTF-8 literal
Open