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

How to modify a column attribute like Length,PIC in DB2?


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
softwareengineer

New User


Joined: 24 Aug 2005
Posts: 24
Location: Hyderabad

PostPosted: Thu Jul 12, 2007 2:52 pm
Reply with quote

How to modify a column attribute like Length,PIC in DB2?

My question is quite big. If I want to change a field/column name say NAME of length '3' to '5'. How can I modify my table with out effecting existing info?

once after making field lenght changes in my DB2 table, what else needs to be done in my COBOL-DB2 program to accomodate tht field modification and what abt the Precompile , Bind process??

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

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Thu Jul 12, 2007 3:14 pm
Reply with quote

I think a developer will not be given permission for changing the column alteration in DB2.You have to get in touch with your DBA team who will be doing the changes as per the requirement.

In case of COBOL+DB2 program,you must find the programs in which the modified table is used and in specific,the affected column is used.All the programs which use the modified column in any of the SQL type(select,insert,update or delete) needs a recompilation.The program logic also needs a double check since the field size is increased.

Hope this helps.
Back to top
View user's profile Send private message
softwareengineer

New User


Joined: 24 Aug 2005
Posts: 24
Location: Hyderabad

PostPosted: Thu Jul 12, 2007 3:44 pm
Reply with quote

Yes. As a developer, we are not given access to do so. This question was asked in a interview. I just want to how we can do it in test region. please provide the answer from DBA point of view.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top