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

What do I need to do to the add new columns to the table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitraja

New User


Joined: 13 Jan 2004
Posts: 11

PostPosted: Sat Oct 30, 2004 2:40 am
Reply with quote

HI,

I have a exsisting DB2 table...

1. What do I need to do to the add new columns to the table

2. Do I need to compile the program which are already using this tables after I add new cloumns to the tables.

3. Is there a good document which explains step by step executing of DB2 code.

Thanx
Ami
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Sat Nov 13, 2004 1:02 am
Reply with quote

amitraja wrote:
HI,

I have a exsisting DB2 table...

1. What do I need to do to the add new columns to the table

2. Do I need to compile the program which are already using this tables after I add new cloumns to the tables.

3. Is there a good document which explains step by step executing of DB2 code.

Thanx
Ami


==============================
Hi,

first step is to identify the list of programs where the impacted DB2 table
is used.

Second is to analyse what kind of DDL statements used in each of the
program and create a report of it.

If the new filed, is not going to be a part of Index, then Delete/Update
statements will not be affected.
Insert/Select will be impacted based on the usage of the filed

Take an image copy of the table.
Drop the table
Create a new table defination
Load the table from the previous image copy /* here the format differs
so you may use one time program to load this, otherwise you can chagne the syspunch and load*/

now you need to modify the impacted program.
Compile, link-edit and bind all the programs where the table is used.

let me know if you require any additional information.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Nov 15, 2005 2:49 pm
Reply with quote

hi frnd,
1.What do I need to do to the add new columns to the table ?
u can use the ALTER command for the above query

2.Do I need to compile the program which are already using this tables after I add new cloumns to the tables?
Yes u had made some changes na then its a good thing to compile it such that if any thing goes error it may be catched previously.

3.Is there a good document which explains step by step executing of DB2 code?
there are plenty of documentation available for DB2 but i dont know what does the step by step executiion u are meaning here.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top