Re:Jean Sammet, co-creator of COBOL, has died
by marktangotango on Tuesday June 06, 2017 @03:17PM
(#14500278)
It's not as sophisticated as you may suppose :)
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/...
COBOL could actually do more sophisticated stuff than that. For example, it had the "occurs depending on" construct, where you could read a record that had variable numbers of repetitions of a sub-structure, with the number of repetitions specified by one of the fields. (I never actually programmed in COBOL, but I've had to deal with code that had to support COBOL-style data structures.)