340 pts.
 How to find the copybook?
Hi,
I need to make few changes to a copybook in COBOL/400. I know the name of the copybook. Please let me know how to locate it?

Regards, M

Software/Hardware used:
AS/400, COBOL/400
ASKED: February 22, 2013  4:05 AM

Answer Wiki:
After entering your Pds name in option 3.4 we will get a list of copy books included in this pds,within the command line we can type 'listcat entries(/) all' then we can see the full details including its length.
Last Wiki Answer Submitted:  February 22, 2013  10:40 am  by  TomLiotta   107,695 pts.
All Answer Wiki Contributors:  TomLiotta   107,695 pts. , AdamSm   35 pts. , mvrkrishna   340 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It would be easier to answer if you showed us the COPY statement. Without seeing it, we can’t be sure how to do it. So you will have to follow the rules given in the COBOL/400 Reference manual (.PDF) in Chapter 9, ‘Compiler-Directing Statements’, the COPY statement topic. That assumes that you are asking about OPM COBOL/400. Note that the latest COBOL/400 manual is apparently from 1994. COBOL/400 is an old language. You should probably change over to using ILE COBOL instead. — Tom

 107,695 pts.

 

Hi Tom,

Sorry, If I have confused you.
I know the name of the “copybook”. I need to find out the name of the Library and the source PF in which it is present.

Regards,
M

 340 pts.

 

The COPY statement still hasn’t been shown; but if you don’t know the file and library names, it implies the likely format. So, follow the rules in Chapter 9 of the .PDF and it should be easy. — Tom

 107,695 pts.

 

BTW, if you simply run a test compile into QTEMP, the compiler listing should show where the compiler found the COPY book. — Tom

 107,695 pts.

 

Note that the ‘Answer’ is very incorrect and won’t help at all. It applies to a different platform and is also incomplete. — Tom

 107,695 pts.