I really don't want to judge your ability, I agree with your comment about C#, Java, JS, C ,... but COBOL is a completely different animal to reason with.
Been there and ran as fast as I could.
Been there and ran as fast as I could.
I don’t know COBOL though so I can’t say if this code is idiomatic or not.