MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

recompile COBOL program if changing table structure?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
cutiepig
Beginner


Joined: 17 Jul 2003
Posts: 1
Topics: 1

PostPosted: Thu Jul 17, 2003 2:28 am    Post subject: recompile COBOL program if changing table structure? Reply with quote

Dear all,
Suppose that at the first time, I had field A, B, C in table TEST_1. Then I had already compiled and bound COBOL program to this table. After that, somehow, I change the structure of table TEST_1 to be field A,B,D,C. I'm wondering that if I have to recompile and rebind the progam to table TEST_1? If I have to do so, what should I do if I have many ten of programs referring to this recontrcted table?

Thank you so much
Cutiepig Confused Confused
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Thu Jul 17, 2003 5:59 am    Post subject: Reply with quote

If you are not referencing any of the new columns of a table, there is nothing you have to do manually. With the first execution of your program after structure modifications DB2 does an automatic REBIND by itself.

You get problems if you are issuing INSERT statements for a table and this table has new columns with "not null, no defaults". Then, of course, you have to change the code.

By the way: If you are changing the structure of a table shurely ALL using programs need at least a brief examination.

Regards
Christian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group