Functions, dates, JSON and OO COBOL
The numeric and the string intrinsic functions, dates and the days between two of them, then JSON GENERATE and JSON PARSE, on a JSON document. XML gets a lesson on the parts of it this compiler does not build. The part ends on COBOL objects: CLASS-ID, inheritance and interfaces, and the constructs 3.2 refuses.
11.1
Numeric intrinsic functions
FUNCTION MAX, MIN, ABS, MOD, INTEGER and FACTORIAL, and a value they refuse
Open
11.2
String intrinsic functions
FUNCTION LENGTH, SUBSTITUTE, REVERSE and TRIM, and a report field built with them
Open
11.3
CURRENT-DATE and date arithmetic
FUNCTION CURRENT-DATE, INTEGER-OF-DATE, DATE-OF-INTEGER, WHEN-COMPILED and the days between two dates
Open
11.4
JSON GENERATE
JSON GENERATE, a record as a JSON document, numbers and strings, and the name it gives a field
Open
11.5
JSON PARSE
a JSON document into a record, NAME and VALUE, a missing field, and ON EXCEPTION
Open
11.6
XML and what 3.2 lacks
XML GENERATE, XML PARSE, and the parts of each that this compiler does not build
Open
11.7
OO COBOL: CLASS-ID and objects
CLASS-ID, METHOD-ID, an object in USAGE OBJECT REFERENCE, and a method that returns a value
Open
11.8
OO COBOL: inheritance and interfaces
INHERITS, IMPLEMENTS, an overridden method, and the object that uses both
Open
11.9
OO COBOL: what 3.2 does not build
the constructs that fail, the real error for each, and what to use instead
Open