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
Software/Hardware used:
ASKED:
April 20, 2012 8:07 AM
UPDATED:
April 20, 2012 6:59 PM
Changing a copy book has no effect…the effect occurs when a program that uses it is recompiled.
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