Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Change in Copybook and recompile

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Change in Copybook and recompile
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    Post subject: Re: Copybook and recompile
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: 685
Location: Earth

PostPosted: Sat Apr 14, 2007 1:26 am    Post subject: Re: Change in Copybook and recompile
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us