Cobol pgm accessing a db2 File



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Cobol pgm accessing a db2 File

Postby vinodibm » Thu Sep 23, 2010 11:07 pm

HI,
There is a cobol pgm accessing a db2 file..that db2 file has undergone some changes & the same cobol pgm is unable to acces the db2 file after it has undergone the changes.
my question is why this cobol pgm is not able to acces the db2 file after it has undergone the change & what is the possible error?
vinodibm
 
Posts: 1
Joined: Thu Sep 23, 2010 7:35 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Cobol pgm accessing a db2 File

Postby Robert Sample » Thu Sep 23, 2010 11:16 pm

Terminology is critical in IT, where similar terms may mean very different things. There is no such thing as a "db2 file" for your program to access -- DB2 has tables, rows, columns, and so forth. Perhaps you can reformulate and clarify what you meant?

And if the DB2 table was changed, you DID recompile and re-bind your program AFTER the changes were done, right? If not that alone could be the source of your problem.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Cobol pgm accessing a db2 File

Postby dick scherrer » Thu Sep 23, 2010 11:40 pm

Hello and welcome to the forum,

my question is why this cobol pgm is not able to acces the db2 file after it has undergone the change & what is the possible error?
Who knows. . . . Well, you know. Only you have this information. If you post the error(s) we can help resolve the problem(s).

Was there an unwanted sqlcode returned? An abend?

Posting "it didn't work" is just a waste of everyone's time.

Just curious - why does one believe that tables can be changed without doing anything with the cobol code that references these tables. . . :?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Cobol pgm accessing a db2 File

Postby Atif » Thu Oct 07, 2010 2:38 pm

Try remaking the dclgen and bind pakage .
Atif
 
Posts: 3
Joined: Thu Sep 16, 2010 12:10 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post