Variable length arrays VS copybook



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Variable length arrays VS copybook

Postby larret » Thu Apr 08, 2010 1:50 pm

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?
larret
 
Posts: 3
Joined: Sat Apr 26, 2008 7:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Variable length arrays VS copybook

 

Re: Variable length arrays VS copybook

Postby Robert Sample » Thu Apr 08, 2010 5:05 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Variable length arrays VS copybook

Postby larret » Thu Apr 08, 2010 5:39 pm

I've just solved my probelm. Sorry for ambiguity... I was simply tired yesterday night ;).
larret
 
Posts: 3
Joined: Sat Apr 26, 2008 7:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Variable length arrays VS copybook

Postby Robert Sample » Thu Apr 08, 2010 5:46 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Variable length arrays VS copybook

Postby larret » Thu Apr 08, 2010 6:03 pm

This oddness was a consequence of last night ;) .
larret
 
Posts: 3
Joined: Sat Apr 26, 2008 7:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Variable length arrays VS copybook

Postby dick scherrer » Thu Apr 08, 2010 11:44 pm

And the "language shift" was not helpful either :)

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

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post