Increasing Data Field from Past File Layout Database File



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

Increasing Data Field from Past File Layout Database File

Postby crazycobol » Wed Dec 16, 2009 4:41 am

Hi again guys. I have an issue that maybe you can help me with.

I have a program that was written a few years ago. In that program, the varible has been declared to be PIC 99v99. The file layout in the File Section that creates the database is PIC 99v99. I need to increase one of the data field from PIC 99V99 to PIC 99V999. When I changed it to PIC 99V999, I got a program error 39 which is file is not compatible because of the increase field, the file layout has been changed.

Obvisouly I have to change the database file to reflect the increase in that field. How do I go about doing that? any suggestion is greatly appreciated.
crazycobol
 
Posts: 35
Joined: Fri Dec 04, 2009 3:33 am
Has thanked: 0 time
Been thanked: 0 time

Re: Increasing Data Field from Past File Layout Database File

Postby dick scherrer » Wed Dec 16, 2009 8:58 am

Hello,

Suggest you talk with the dba - they are most often the ones who make database definition changes.

The 39 does not sound like a database problem. . . This sounds like a problem due to the file definition and the actual file being different. . .
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: Increasing Data Field from Past File Layout Database File

Postby crazycobol » Wed Dec 16, 2009 11:23 pm

dba? database administrator?

i don't have a database administrator in-house.
crazycobol
 
Posts: 35
Joined: Fri Dec 04, 2009 3:33 am
Has thanked: 0 time
Been thanked: 0 time

Re: Increasing Data Field from Past File Layout Database File

Postby dick scherrer » Thu Dec 17, 2009 1:09 am

Hello,

If the database changed, Someone changed the database structure. . . Who was it?

Possibly you are simply mis-using terms. . .
The file layout in the File Section that creates the database is PIC 99v99.
Which database are you using that has entries in the File Section?

If you changed a non-database file, why did you change it? If you changed this one place, why did you not change it everywhere?

Until you more clearly describe what is going on, it will be difficult to offer suggestions.
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


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post