开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

COBOL COPY STATEMENT


 

Another question for VSE COBOL Experts:
VSE/ESA 2.4 and VSE COBOL 1.1.1
- I have copybook member FILE01.A in USER.LIB sublibrary.
- in JCL in compiling step i have DEFLIB definition:
? ? ? ? ? ? ? ? // LIBDEF SOURCE,SEARCH=USER.LIB
- in COBOL source i have following sequence:
? ? ? ? ? ? ? ? ?WORKING-STORAGE SECTION.
? ? ? ? ? ? ? ? ?COPY FILE01.

Compiler is giving following Error:
? ? ? ? ? ? ? ?IGYLI0048-S? ?THE MEMBER WAS NOT FOUND IN THE "COPY" LIBRARY.??SKIPPED TO THE PERIOD TERMINATING THE "COPY" STATEMENT.
What I doing wrong???


 

It is resolved, member FILE01.A is renamed to FILE01.C and compile is successful.
I cannot find in documentation any rule which say to copybook must be "C" type.


 

On Wed, Jan 12, 2022 at 02:01 AM, Crni Mrki wrote:
I cannot find in documentation any rule which say to copybook must be "C" type.
The documentation of the Librarian (in the Guide to System Functions) indicates that, for IBM programs (including the COBOL compiler I assume), the source book member type C is reserved for COBOL source code. :-)

Cheers,

Rene FERLAND, Montreal

P.S. -- Member type A is for assembler source code and source macro definitions.


 

开云体育

I thought macros were E.

?

From: [email protected] <[email protected]> On Behalf Of René Ferland
Sent: Wednesday, January 12, 2022 9:45 AM
To: [email protected]
Subject: Re: [H390-DOSVS] COBOL COPY STATEMENT

?

On Wed, Jan 12, 2022 at 02:01 AM, Crni Mrki wrote:

I cannot find in documentation any rule which say to copybook must be "C" type.

The documentation of the Librarian (in the Guide to System Functions) indicates that, for IBM programs (including the COBOL compiler I assume), the source book member type C is reserved for COBOL source code. :-)

Cheers,

Rene FERLAND, Montreal

P.S. -- Member type A is for assembler source code and source macro definitions.


 

On Wed, Jan 12, 2022 at 07:47 AM, Mike Ward wrote:
I thought macros were E.
Both A and E are used apparently. ?According to the documentation: ?E is the member type for assembler macros. These can be IBM-supplied or user-written macro definitions in an edited (partially processed) format (also referred to as E-Deck).? But I don't know the difference between a ?source macro definition? and an ?assembler macro in edited format?.

Cheers,

Rene FERLAND, Montreal


 

The COBOL compiler looks for copy statements NNNNNNNN.C to find copies.

Gary

On Wednesday, January 12, 2022, 08:44:42 AM MST, René Ferland <ferland.rene@...> wrote:


On Wed, Jan 12, 2022 at 02:01 AM, Crni Mrki wrote:
I cannot find in documentation any rule which say to copybook must be "C" type.
The documentation of the Librarian (in the Guide to System Functions) indicates that, for IBM programs (including the COBOL compiler I assume), the source book member type C is reserved for COBOL source code. :-)

Cheers,

Rene FERLAND, Montreal

P.S. -- Member type A is for assembler source code and source macro definitions.


 

The book NNNNNNNN.E are for assembler language only NNNNNNNN.C is for COBOL!!

Gary

On Wednesday, January 12, 2022, 08:47:46 AM MST, Mike Ward <antebios1153@...> wrote:


I thought macros were E.

?

From: [email protected] <[email protected]> On Behalf Of René Ferland
Sent: Wednesday, January 12, 2022 9:45 AM
To: [email protected]
Subject: Re: [H390-DOSVS] COBOL COPY STATEMENT

?

On Wed, Jan 12, 2022 at 02:01 AM, Crni Mrki wrote:

I cannot find in documentation any rule which say to copybook must be "C" type.

The documentation of the Librarian (in the Guide to System Functions) indicates that, for IBM programs (including the COBOL compiler I assume), the source book member type C is reserved for COBOL source code. :-)

Cheers,

Rene FERLAND, Montreal

P.S. -- Member type A is for assembler source code and source macro definitions.


 

Thank you all for the Answers!
The reason for my confusion is that "COMPILE JOB GENERATION" from the FSLIST Option 8 (Compile) panel for source type "Map Definition" and Language "COBOL VSE" generates a copybook with File Type "A".