Talk About Network



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 8 of 9 Topic 4054 of 4166
Post > Topic >>

Re: (Non-Standard) ODO's

by "William M. Klein" <wmklein@[EMAIL PROTECTED] > Mar 12, 2008 at 11:30 PM

Thanks,    The
    GROUP1                  BLW=0000+008         0CL11

having "0CL11" certainly seems conclusive.  I can think of some other
tests 
(like going over a 4096 boundary - or using EXTERNAL) but it seems that
this 
does allocate the full storage - even if it isn't used.

-- 
Bill Klein
 wmklein <at> ix.netcom.com
"Frank Swarbrick" <Frank.Swarbrick@[EMAIL PROTECTED]
> wrote in message 
news:47D7EA43.6F0F.0085.0@[EMAIL PROTECTED]
>>>> On 3/12/2008 at 7:14 AM, in message
> <FGQBj.34620$Gl5.10481@[EMAIL PROTECTED]
>, William M.
> Klein<wmklein@[EMAIL PROTECTED]
> wrote:
>> As a follow-up to another thread,  I am actually curious (and don't
know
>> the
>> answer - but have a guess) what IBM does with "BLV" (base locators for
>> variably
>> located data) and what Micro Focus does when ODOSLIDE is turned on.
>> Specifically whether either or both actually DO do "dynamic allocation"
>> for
>> NON-Standard ODO's (i.e. those prohibited by the Standard - but allowed
as
>
>>
>> documented extensions by these - and possibly other - compilers).
>
> [deleted]
>
>> So my question is whether the "change in size" of Group1 actually
>> involves
>> dynamic change in storage allocated - or just SEEMS to.  I am not even
>> certain
>> how one could find this out.  (I don't know, but I don't think the
>> generated
>> Assembler would tell - but it might.)
>>
>> P.S.  I am WELL aware of the storage requirements for
>> "Standard-conforming"
>> ODO's.
>
> With IBM COBOL for VSE there doesn't appear to be any sort of dynamic
> allocation going on.  I first added two additional data items:
> Before Group1:
> 77  ABEND  PIC S9(3) PACKED-DECIMAL.
> After Non-standard-after-odo:
> 77  FILLER PIC X(16) VALUE '**WS ENDS HERE**'.
>
> The output listing shows the following (essentially):
>
> ABEND                   BLW=0000+000         2P
> GROUP1                  BLW=0000+008         0CL11
> NUM                     BLW=0000+008,0000000 1C
> TABL1                   BLW=0000+009,0000001 0CL9
> TABL-ITEM               BLW=0000+009,0000001 1C
>                        7
> NON-STANDARD-AFTER-ODO  BLV=0000+000         1C
> FILLER                  BLW=0000+018         16C
>
> The trailing filler starts at an offset where there's enough room for
> NON-STANDARD-AFTER-ODO to be positioned with NUM being 9; plus it's
probably
> aligned on the next fullword boundary, which would account for the extra
> non-specified filler space.
>
> Anyway, the only thing that's really 'dynamic' is the value of the BLV
> itself.  Doing some dumps shows that when NUM is 1, BLV=0 starts 10
bytes
> after BLW=0.  When NUM is 9, BLV=0 starts 18 bytes after BLW=0.  This
all
> appears to me to be quite reasonable.
>
> Frank
>
>




 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 Fri Jul 4 16:42:16 CDT 2008.