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

How to change the content of COPYBOOK


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

PostPosted: Fri Dec 29, 2006 12:17 pm
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
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: 1208
Location: Bangalore,India

PostPosted: Fri Dec 29, 2006 12:40 pm
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 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