Subject: | |
From: | |
Reply To: | |
Date: | Tue, 12 May 1998 08:22:39 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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.
|
|
|