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

A new column getting added to a table?


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

New User


Joined: 30 Mar 2007
Posts: 21
Location: North Carolina

PostPosted: Tue Dec 16, 2008 6:58 pm
Reply with quote

Hi,
I have an interview question which i am not able to try out. I would really appreciate if somebody can help me on this.
I have a cobol program in which i am fetching rows from a table. this program is currently running in production. someone added a new column to the table. But this program for some reason was missed out. It was not recompiled. Will this program abend the next time it runs?

thanks in advance,
ajay
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Tue Dec 16, 2008 7:10 pm
Reply with quote

It depends on your code :

1) Its always told to code all the column names in a select query instead of '*'. If you have used '*' in your query then you code wil surely abend as there will be no new host variable to hold the new column values.

2) If your code has nothing to do with your new column, then your code should work fine without being recompiled.

Do let me know, if I am missing anything.
Thanks,
-Kapil.
Back to top
View user's profile Send private message
ajaypmenon

New User


Joined: 30 Mar 2007
Posts: 21
Location: North Carolina

PostPosted: Tue Dec 16, 2008 7:16 pm
Reply with quote

Hi Kapil,
This was exactly what i am looking for. I really appreciate it. Thanks a lot for the help.

Thanks,
Ajay
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 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
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top