How to find the copybook?

530 pts.
Tags:
AS/400
COBOL/400
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • mvrkrishna
    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
    530 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • TomLiotta
    BTW, if you simply run a test compile into QTEMP, the compiler listing should show where the compiler found the COPY book. -- Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Note that the 'Answer' is very incorrect and won't help at all. It applies to a different platform and is also incomplete. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following