Page 1 of 1

Variable length arrays VS copybook

PostPosted: Thu Apr 08, 2010 1:50 pm
by larret
Can I use DEPENDING ON clause in included copybooks? What troubles me is that post-compile cobol binary depends on included copybooks. Is it safe to use varriable array that was defined that way?

Re: Variable length arrays VS copybook

PostPosted: Thu Apr 08, 2010 5:05 pm
by Robert Sample
What troubles me is that post-compile cobol binary depends on included copybooks.
What on earth do you mean by this? The whole point of the COMPILE process is to create a load module from the source. Once this is done, the source can be destroyed and the load module will continue to execute for the next many years without any source at all.

Re: Variable length arrays VS copybook

PostPosted: Thu Apr 08, 2010 5:39 pm
by larret
I've just solved my probelm. Sorry for ambiguity... I was simply tired yesterday night ;).

Re: Variable length arrays VS copybook

PostPosted: Thu Apr 08, 2010 5:46 pm
by Robert Sample
Glad to hear you got it resolved. But there was no ambiguity. Your statement that "post-compile cobol binary depends on included copybooks" is plain old, flat out, wrong.

Re: Variable length arrays VS copybook

PostPosted: Thu Apr 08, 2010 6:03 pm
by larret
This oddness was a consequence of last night ;) .

Re: Variable length arrays VS copybook

PostPosted: Thu Apr 08, 2010 11:44 pm
by dick scherrer
And the "language shift" was not helpful either :)

Good to hear this is resolved - thanks for letting us know,

d