Joined: 30 Mar 2007 Posts: 21 Location: North Carolina
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?
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.