Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol > Re: (Non-Standa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 4054 of 4191
Post > Topic >>

Re: (Non-Standard) ODO's

by Richard <riplin@[EMAIL PROTECTED] > Mar 13, 2008 at 11:46 AM

On Mar 14, 2:54 am, "Michael Mattias" <mmatt...@[EMAIL PROTECTED]
> wrote:
> In the grand scheme of things, does it really matter if ODOs are
allocated
> dynamically or statically?

If everytime the DO changed a realloc() was done, then yes, it
certainly would matter. realloc()s are notoriously, and necessarily,
slow. You would have to (re)write the program in a way that minimised
the changes to the DO.

> Seems to me as long as there are "n" occurences available where 
n=current
> value of DEPENDING ON variable, the applications programmer doesn't care
a
> hoot about the allocation strategy employed by the publisher.

ODO originated for data records to save space on tape based systems.
There it _does_ change the actual size of the record on the tape, or
(much later) disk files. Its application to Working-Storage was
primarily to cater for READ INTO and WRITE FROM where the W-S area
_needed_ to be 'full size' so that the record could be added to.

Note that a DO embedded in a record would set the ODO _after_ an INTO
had moved the complete data record from the FD record area.  Dynamic
allocation is not an option.

The fact that much later SEARCH (1974) and table SORT (2002) use ODO
is merely for convenience of not having to invent another feature to
do this.

> True, that publisher's strategy may - and perhaps should - figure into
your
> evaluation of "which" COBOL compiler to use, but once that decision has
been
> made it's immaterial.
 




 9 Posts in Topic:
(Non-Standard) ODO's
"William M. Klein&qu  2008-03-12 13:14:13 
Re: (Non-Standard) ODO's
Robert <no@[EMAIL PROT  2008-03-12 12:43:12 
Re: (Non-Standard) ODO's
"William M. Klein&qu  2008-03-12 20:08:21 
Re: (Non-Standard) ODO's
Robert <no@[EMAIL PROT  2008-03-12 19:10:25 
Re: (Non-Standard) ODO's
"Michael Mattias&quo  2008-03-13 13:54:21 
Re: (Non-Standard) ODO's
Robert <no@[EMAIL PROT  2008-03-13 23:37:14 
Re: (Non-Standard) ODO's
"Frank Swarbrick&quo  2008-03-12 14:35:47 
Re: (Non-Standard) ODO's
"William M. Klein&qu  2008-03-12 23:30:25 
Re: (Non-Standard) ODO's
Richard <riplin@[EMAIL  2008-03-13 11:46:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 3:06:34 CDT 2008.