IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Change in Copybook and recompile


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ami777us

New User


Joined: 06 Apr 2007
Posts: 33
Location: USA

PostPosted: Sat Apr 14, 2007 1:02 am
Reply with quote

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
View user's profile Send private message
ami777us

New User


Joined: 06 Apr 2007
Posts: 33
Location: USA

PostPosted: Sat Apr 14, 2007 1:11 am
Reply with quote

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
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Sat Apr 14, 2007 1:26 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
Search our Forums:

Back to Top