Cobol doubly linked list
Posted on Sun 01 November 2020 in COBOL
COBOL Doubly Linked List Example.
COBOL does support pointers and with language environment(LE) on the z/OS platform you can easily utilize dynamic storage. Look at the EXAMPLE links below to see a cobol sub program and main program that tests the functionality.
Why?
Covid-19 and two or three entertaining reads between cobol students and experts in various cobol forums. Dug out some old notes and pushed to github.
Why Not?
Well there is that one thing, followed by another that points forward and back. That seems like enough reasons for not.
Links
- Forum: Link what?
- Forum: Into the Abyss.
- Forum: Out of the Abyss and into some sample code?
- IBM: Simple Linked List, Not bad but not a doubly linked list.
- VISUAL: Is this right?
- EXAMPLE: DLLSUBX.CBL
- EXAMPLE: DLLMAIN.CBL
- EXAMPLE: DLLPARM.CPY
- REPO: cobol
Conclusion
After reading some of the forum information above you may be confused. Suffice it to say learning cobol by coding linked list routines must be a unique undertaking. It may be best to figure out linked lists on your own and perhaps not ask for help. If you found any of this really helpful and you feel like you've cheated on an assignment, maybe you should move on to a red-black tree. :-)