COBOL file status 92 on VSAM

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Prakash Jha
Registered Member
Posts: 64
Joined: Sat Jun 29, 2013 1:45 pm

COBOL file status 92 on VSAM

Post by Prakash Jha »

Hi All,

I am facing an issue while trying to read a VSAM file sequentially. The program is giving file status 92. The file was loaded properly, so I was expecting it to run fine.Has anyone faced this type of problem before? Is it something to do with the OPEN mode or DD statement mismatch? Please suggest what I should check first.
User avatar
zum13
Active Member
Posts: 135
Joined: Thu May 04, 2023 12:58 am

Re: COBOL file status 92 on VSAM

Post by zum13 »

Hello.

File status 92 is a bit vague; "logic error" really doesn't say too much that's helpful. I'd be looking for other messages in the job output, specifically ones prefixed with "IDC", in order to get a little more information.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

Re: COBOL file status 92 on VSAM

Post by Robert Sample »

File status 92 on a VSAM file is frequently caused by not establishing a current record pointer before doing a read.  If your VSAM is dynamic, move LOW-VALUES to the key and do a START before the READ.  Otherwise, you'll need to post the FILE definition and the READ code for us to review.
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”