Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

A new column getting added to a table?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: A new column getting added to a table?
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    Post subject: Reply to: A new column getting added to a table?
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us