Pedro wrote:I am not a Cobol user, but some language compilers have some information in their listings. I suggest you have a small program that uses that record layout and then examine the compiler listing. You might also read about the debugging options of the compiler which might give you more information.
Indeed, we have a tool (that I did not write; therefore I will
not post any code, panels, etc. here) that tailors a skeleton consisting of a very simple PL/I program (basically just PROC, %INCLUDE, and END statements) to use the copybook in question and compiles it, thus getting the exact scalar and aggregate lengths that will actually be used in "real life" (or if it doesn't, it becomes Peter Elderon's problem, not mine
). I strongly urge the TS to consider a similar solution.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day