Maps in COBOL
COBOL by Example: Maps#
Maps are COBOL’s way of handling associative data, which are sometimes referred to as hashes or dictionaries in other languages.
To define a map in COBOL, you use the table structure. Here’s how to perform various operations on maps in COBOL:
The map appears in the form k:v
when printed with DISPLAY
in COBOL.
Next example: Functions.