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
 

 

How to change the content of COPYBOOK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Jiya_su

New User


Joined: 11 Dec 2006
Posts: 7
Location: hyderabad

PostPosted: Fri Dec 29, 2006 11:02 am    Post subject: How to change the content of COPYBOOK
Reply with quote

Hi Friends
I would like know to more information on copybook with answer of this question...
1) copy book A is calling another copybook B If any changes made in copy book B Will it affect copybook A..& Main program.

2) How to make changes in copybook? What is the procedure for that?

Thanks in Advance.....
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Dec 29, 2006 12:17 pm    Post subject:
Reply with quote

Hi Jiya,

Quote:
1) copy book A is calling another copybook B If any changes made in copy book B Will it affect copybook A..& Main program.


What do u mean by that? IS copybook A contain the stmt COPY B
If it is the case any changes u made in copybook B & recompile ur program then changes will reflect in copybook A

Quote:
2) How to make changes in copybook? What is the procedure for that?


Depending upon ur shop's process u might need to check out the copybook made necessary changes find out all the program which is using this copybook recompile them & if require need necessary changes in the program
Back to top
View user's profile Send private message
Mi3

New User


Joined: 26 Nov 2006
Posts: 8
Location: Chennai

PostPosted: Fri Dec 29, 2006 12:37 pm    Post subject: Re: How to change the content of COPYBOOK
Reply with quote

Hi,
For the first question, as far as i know, all changes made in the called copybook (B) will be reflected in the calling copybook (A) and hence in the Main program. But be sure that you are pointing to the correct location while doing this.

Regarding your second question, I agree with Ekta. You need to check out the Copybook if that's existing in production , make changes and then recompile the Main program. (Of course you need to check out all the components that your program is calling -- here, copybooks A & B)

What we do usually do is checkout the Main Program to a package, checkout the copybooks and load modules, etc and then recompile the program after making changes in the copybooks.


Seniors, please correct me if the above is faulty or misleading.

Regards,
Navaneeth
_____________________
Happy New Year !!
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Fri Dec 29, 2006 12:40 pm    Post subject:
Reply with quote

Hi MI3,

Quote:
For the first question, as far as i know, all changes made in the called copybook (B) will be reflected in the calling copybook (A) and hence in the Main program. But be sure that you are pointing to the correct location while doing this.


If u change the copybook B & do not recompile the program which is using copybook A then changes will not effect
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 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
This topic is locked: you cannot edit posts or make replies. Get and display content of an address... lind sh CICS 1 Mon Aug 08, 2016 9:18 am


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