Can I change c0001copybook in RPG?

10 pts.
Tags:
AS400 - Copy Book
RPG
in rpg c0001 is a standard copybook.if i want to make a new program then can i use this copybook.and for my program some modification is necessary...so can i change this copybook program

Answer Wiki

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

You can use that copybook but if you try to modify it then you have to check the impact of that copybook to other programs.

Otherwise you can crate the same copy-book with different name and do the modification as you want and use that copybook in your program.

Discuss This Question: 2  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
  • philpl1jb
    Changing a copy book has no effect...the effect occurs when a program that uses it is recompiled.
    50,385 pointsBadges:
    report
  • TomLiotta
    You can probably change the /COPY book to supply the statements that you need without affecting any other program that needs the same /COPY book. You could place a /DEFINE statement in your program source to define a condition name, placing the statement just before the /COPY statement. In the /COPY book, you could put a /IF Condition-Expression statement to test for your new defined condition name to put your changes in your program. Other programs that don't define the same condition name would continue to get the old statements that aren't included in your new structure. 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