Facing problem while rewriting a VSAM file



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

Facing problem while rewriting a VSAM file

Postby ajuatsgp » Tue Jun 15, 2010 1:02 pm

Hi,

I have a Vsam file having Header and Trailer.
I am opening that file in I-O mode and while doing rewrite I am getting Logic error and file status 92.

I have tried wirth Sequential,Random access.
ajuatsgp
 
Posts: 82
Joined: Thu May 20, 2010 6:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Facing problem while rewriting a VSAM file

 

Re: Facing problem while rewriting a VSAM file

Postby Robert Sample » Tue Jun 15, 2010 4:08 pm

Is this happening on the first record or last record or some record in between? Is it reproducible -- if you run the same program again, does it do exactly the same thing? A file status 92 on a REWRITE most of the time means the primary key was changed between the READ and the REWRITE, although there can be other reasons for it. Have you defined the expanded VSAM file status key? If so, what are the values reported by it? If not, add the expanded VSAM file status key to the program and rerun to get the VSAM return code, reason code, and feedback code as they are much more detailed (in most cases) than the standard file status code.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post