COBOL has a facility for this - it's called the level 88 condition-name - maybe not exactly how you are visualizing it, however.
Google "COBOL level 88" to read all about it.
COBOL has a facility for this - it's called the level 88 condition-name - maybe not exactly how you are visualizing it, however.
Google "COBOL level 88" to read all about it.