If you put the "COPY DDS-ALL-FORMATS OF myfile" in the WORKING-STORAGE
SECTION, then "myfile" does not show up when doing a DSPPGMREF. You can also
use "COPY member OF sourcefile" to include a source member in your program.
This works just like the /COPY directive in RPG.

Have fun!

-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx]On Behalf Of David Gibbs
Sent: Wednesday, August 10, 2005 9:35 AM
To: cobol400-l@xxxxxxxxxxxx
Subject: [COBOL400-L] Re: External data structures

David Gibbs wrote:
> A co-worker was wondering if anyone would be able give a simple source
> example of an external data structure definition in OPM COBOL and ILE
> COBOL ... if the concept even exists.

Thanks all ... follow up to the original question:

In RPG, an external data structure is not picked up by a DSPPGMREF. In
COBOL, it appears that it is picked up. Is there any way to use a file
or external data structure in a COBOL program that will cause the
file/DS to NOT be picked up by a DSPPGMREF.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.