IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM return code 23 - for a Random read


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saba2309

New User


Joined: 22 Dec 2022
Posts: 5
Location: Malaysia

PostPosted: Fri Apr 28, 2023 5:16 pm
Reply with quote

Dear All,

We have an IAM dataset(KSDS) which is a master file(Customer info). The same file used for on-line and batch as well. We use to read the record randomly in batch however we do read, read-update and rewrite in online.

In batch program the file defined as below
Org - Indexed
Access Mode - Dynamic

Read using key
READ <<File Name>> KEY IS KEY-XX.

This IAM is very large file contains customer info. Same file accessed in online as well concurrently.

The batch job encounters record not found error - VSAM return code 23. however the record is exist already in the file.

We even printed the key and it is same value as in the file. The same record is also able to read in another day batch. This occurs very few records <=2 for a week.

Could you please assist what should I further verify?

Thank you
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1231
Location: Bamberg, Germany

PostPosted: Fri Apr 28, 2023 5:22 pm
Reply with quote

You should ask the vendor FDR (or it's new owner). In the past they were very helpful assisting to solve any issues.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3049
Location: NYC,USA

PostPosted: Tue May 02, 2023 1:48 am
Reply with quote

Why don’t you handle 23 and retry 3 times ? Need to know about why was it happening for few records when for all others it works fine , so try to look for online logs if the key is updated , deleted and reinserted or whatever .. find that logic .. I Brielle you are dealing with RLS file , is that right ?
Back to top
View user's profile Send private message
saba2309

New User


Joined: 22 Dec 2022
Posts: 5
Location: Malaysia

PostPosted: Tue May 02, 2023 12:02 pm
Reply with quote

Dear All,
Thank you for the feedback.

I will ask our customer about FDR.

It is a Non-RLS file.

Thank you
Back to top
View user's profile Send private message
saba2309

New User


Joined: 22 Dec 2022
Posts: 5
Location: Malaysia

PostPosted: Tue May 02, 2023 12:14 pm
Reply with quote

Thank you for the suggestion to attempt three times if happens, I was keen to understand what could happened and why it returns 23.

Thank you
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top