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

Changes in a Program when adding a new column in db2 table


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

New User


Joined: 12 May 2005
Posts: 10
Location: NY

PostPosted: Wed Jun 22, 2005 11:31 pm
Reply with quote

hi ,

here is the question i got in interview..

what the changes that has to be taken care in the pgm. and jcl while adding a new column in db2 table..


thanks
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Thu Jun 30, 2005 12:29 am
Reply with quote

You have to add a new host variable wherever you used SELECT *
Back to top
View user's profile Send private message
himansu

New User


Joined: 22 Mar 2005
Posts: 3
Location: bangalore

PostPosted: Wed Jul 13, 2005 9:58 pm
Reply with quote

what is 04w error?
Back to top
View user's profile Send private message
paru

New User


Joined: 24 Jun 2005
Posts: 9
Location: INDIA

PostPosted: Tue Aug 09, 2005 3:50 pm
Reply with quote

i would like to add some obvious changes that has to be made in the application program.

Need to ALTER the existing TABLE to add the new colomn

ALTER TABLE <table_name> ADD COLOMN <colomn name>

and need to once again generate the DCL GEN host variables.This is the change for the program.As for JCL, no change i think is required.Once you compile the program and resubmit the JCL it shud work fine.



Regarding the JCL changes do not consider the answer i gave as the final one. icon_rolleyes.gif



Cheers

Paru icon_smile.gif
Back to top
View user's profile Send private message
subhash gowda
Warnings : 1

New User


Joined: 02 Jun 2005
Posts: 12

PostPosted: Tue Aug 09, 2005 4:36 pm
Reply with quote

if ur going to add new colum and ur using that colum in ur progarm, then u must create a new copy of dclgen member then you are using that member in ur program, in jcl you must precompile compile, link, bind a new plan and then run the program
Back to top
View user's profile Send private message
raji
Warnings : 1

New User


Joined: 11 Aug 2005
Posts: 1
Location: trichy

PostPosted: Sat Aug 13, 2005 7:39 pm
Reply with quote

can u please tell me the books for db2 for cobol
Back to top
View user's profile Send private message
Karthikt

New User


Joined: 15 Aug 2005
Posts: 51

PostPosted: Thu Aug 18, 2005 6:03 pm
Reply with quote

DB2 Developer Guide by Creig S Mullins is a very good book for DB2
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Using API Gateway from CICS program CICS 0
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 How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top