Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
File reading stops once VSAM file status 23.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kabyab

New User


Joined: 31 Aug 2005
Posts: 34
Location: Pune, India

PostPosted: Tue Oct 23, 2007 6:50 pm    Post subject: File reading stops once VSAM file status 23.
Reply with quote

Hello Friends,

I have two KSDS VSAM files, say A and B. Both have the same keys.
I have some entries (records) in A which may or may not be present in VSAM file B.
My requirement is to read from A and check if the same entry exists in file B.
If present, then set a Working storage flag to Y, then process further.
If the entry is not found in VSAM File B, then we should continue with reading the next record from VSAM File A and continue checking in File B if entry is present.


My problem is:

When the entry is not found in File B, the VSAM file Status is set to 23 i.e. record not found. Now instead of continuing to read the next record in file A, it is coming out without reading any further records from file A and stops comparing with file B.

It would be very nice of you if you could help.

Thanks
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Oct 23, 2007 9:24 pm    Post subject:
Reply with quote

It's your program logic that is causing that action, only you can fix it....
In other words, why does the program stop reading A when B returns a no rec found?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 23, 2007 10:07 pm    Post subject:
Reply with quote

Hello,

It sounds like your program was built using "old" code that considers a "not found" a fatal error.

A "not found" may be perfectly acceptable (as is your case).

Once you change the code to conitinue processing when there is a "not found", you should be "good to go".

Someone will be here if there are questions icon_smile.gif
Back to top
View user's profile Send private message
kabyab

New User


Joined: 31 Aug 2005
Posts: 34
Location: Pune, India

PostPosted: Thu Oct 25, 2007 2:46 pm    Post subject: Reply to: File reading stops once VSAM file status 23.
Reply with quote

Thanks for your replies. As suggested I have made changes to the processing, Now I am continuing to read from the file A irrespective of whether the record is found or not in File B. The code is working fine now ..... thank you .
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 25, 2007 7:49 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif

Thank you for posting your resolution.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us