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 TomLiotta107,695 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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
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
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
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
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
BTW, if you simply run a test compile into QTEMP, the compiler listing should show where the compiler found the COPY book. — Tom
Note that the ‘Answer’ is very incorrect and won’t help at all. It applies to a different platform and is also incomplete. — Tom