View previous topic :: View next topic
|
Author |
Message |
ami777us
New User
Joined: 06 Apr 2007 Posts: 33 Location: USA
|
|
|
|
I have to change a procedure division copybook(Perform a para Y) that is used by pgm A and B .I dont want to execute that para Y by PGM B and also donot want to code anything in pgm B.I want to just recompile B .Is it possible??
I have a thought like:
In copybook:
Perform X thru X-exit
In Pgm A
X:
Perform para Y thru Y-exit
X-exit.
In Pgm B
X:
continue
X-exit.
I want to get rid of even this coding in pgm B because then it would be in too many programs besides B.Please guide. |
|
Back to top |
|
|
ami777us
New User
Joined: 06 Apr 2007 Posts: 33 Location: USA
|
|
|
|
ami777us wrote: |
I have to change a procedure division copybook(To include a NEW Perform a para Y) that will be used by pgm A.But the copybook is also used by PGM B .I dont want to execute that para Y by PGM B and also donot want to code anything in pgm B.I want to just recompile B .Is it possible??
I have a thought like:
In copybook:
Perform X thru X-exit
In Pgm A
X:
Perform para Y thru Y-exit
X-exit.
In Pgm B
X:
continue
X-exit.
I want to get rid of even this coding in pgm B because then it would be in too many programs besides B.Please guide. |
|
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
Quote: |
I have to change a procedure division copybook(To include a NEW Perform a para Y) that will be used by pgm A.But the copybook is also used by PGM B .I dont want to execute that para Y by PGM B and also donot want to code anything in pgm B.I want to just recompile B .Is it possible?? |
Add your new para in CPBOOK.
In program B
COPY CPBOOK
REPLACING == PERFORM Y PARA(your new line)== BY ====.
So that it won't execute in programB.
Tell me if this addressed your problem..? |
|
Back to top |
|
|
|