HP3000-L Archives

May 1998, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Michael Berkowitz <[log in to unmask]>
Reply To:
Michael Berkowitz <[log in to unmask]>
Date:
Tue, 12 May 1998 08:22:39 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Will Townsley writes:

>>> Will Townsley <[log in to unmask]> 05/12/98 07:57am >>>
How do you include copybooks from multiple libraries
when doing a compile. The manual suggests it is possible
but I do not understand the file equate necessary to do
so. Are multiple libraries specified on the same equate
or separate file statements?
-----------------------------------------------------------------------------------
The format of the copy is statement is "COPY modulename OF libname,
with libname optional.  If libname is not entered, Cobol assumes COPYLIB
as the name.  In all cases, Cobol will look for the libname in the logon
group and account.  Therefore, if the copylibs are not where the user is
logged on, file equates must be done.  For example,

01  MYDATA-REC            COPY MYDATA OF COPYLIB.
01  YOURDATA-REC        COPY YOURDATA OF COPYLIB2.

Cobol will look for files COPYLIB.logongroup.logonacct &
                                      COPYLIB2.logongroup.logonacct.

If they are not in the correct place give these file equates:
:FILE COPYLIB=COPYLIB.rightgroup.rightacct
:FILE COPYLIB2=COPYLIB2.rightgroup.rightacct
:COB(74 or 85)XL cobtext,,...etc.

Hope this helps,

Mike Berkowitz
Guess? Inc.

ATOM RSS1 RSS2