Re: Attribute BASED and LINKAGE SECTION



Not to repeat myself (or perhaps you don't know the answer), but is there
any discernable difference between a based data item declared in the
local-storage section and a based data item declared in the linkage section
(and not used in the USING or RETURNING clause of the PROCEDURE DIVISION
header)?

Frank

William M. Klein<wmklein@xxxxxxxxxxxxxxxxx> 06/26/06 4:07 PM >>>
Basically, you are "confusing" the current implementations (as extensions)
of
"programmatically addressed data" with the ALLOCATE and BASED features of
the
'02 Standard.

No, in the '02 Standard Linkage Section items are not "implicitly" BASED -
but
can have the BASED attribute (as can WS and Local-Storage) items.

As stated in another post, the Linkage Section (in the '02 Standard - and
the
'85 Standard - but not most existing implementations) is LIMITED to
"communication" between programs (or functions or whatever)

"Roger While" <simrw@xxxxxxxxxxxx> wrote in message
news:e7of6i$ouj$02$1@xxxxxxxxxxxxxxxxxxxx
Need some enlightenment here.
Isn't a LINKAGE SECTION item implicitly BASED ?
If not, why not. If so, what does BASED do ?



.



Relevant Pages

  • Re: Attribute BASED and LINKAGE SECTION
    ... is it correct that top-level items in LINKAGE ... of "programmatically addressed data" with the ALLOCATE and BASED features ... in the '02 Standard Linkage Section items are not "implicitly" ...
    (comp.lang.cobol)
  • Re: Attribute BASED and LINKAGE SECTION
    ... A Calls B, B sets addressability, B exits to A, A calls B again ... in the '02 Standard Linkage Section items are not "implicitly" BASED - ...
    (comp.lang.cobol)
  • Re: Attribute BASED and LINKAGE SECTION
    ... Considering other discussions of the "execution of the runtime ... it seems to me that based items in linkage should ... like local-storage based items. ... association ends "at the end of the life cycle of the data items ...
    (comp.lang.cobol)
  • Re: Attribute BASED and LINKAGE SECTION
    ... Allocate Based1 Returning Ptr1 ... it seems to me that based items in linkage should ... like local-storage based items. ...
    (comp.lang.cobol)
  • Re: Attribute BASED and LINKAGE SECTION
    ... items"), and it says that for based items in local-storage, the ... association ends "at the end of the life cycle of the data items ... in linkage always lose their association when the current activation ... current activation of the runtime element ends. ...
    (comp.lang.cobol)