Getting a reload problem with VSAM.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Jeetan Ram
New Member
Posts: 7
Joined: Sun Sep 13, 2015 9:33 am

Getting a reload problem with VSAM.

Post by Jeetan Ram »

Hi,

For a requirement, I have created VSAM file with non-reusable option. I OPEN the file the with OUTPUT mode and able to load records into the file. This works fine first time but next time, when I try to reload the records with OUTPUT mode, I get an error

Code: Select all

 Non-reusable non-empty data set was opened with the RESET option
Please help, how do I solve this now?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Getting a reload problem with VSAM.

Post by enrico-sorichetti »

define the file with the REUSE option
or delete define it every time.
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Getting a reload problem with VSAM.

Post by Robert Sample »

Please help, how do I solve this now?
The system is working as designed and how you indicated your data should be handled -- so why do you think there is anything to solve?
Jeetan Ram
New Member
Posts: 7
Joined: Sun Sep 13, 2015 9:33 am

Re: Getting a reload problem with VSAM.

Post by Jeetan Ram »

Thanks I've redefined the VSAM with REUSE option and it's working correctly now. I thought with NOREUSE, no other job than which creates it can use the VSAM file but it meant this:
REUSE / NOREUSE
REUSE parameter allows clusters to be defined that may be reset to empty status without deleting and re-defining them.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Getting a reload problem with VSAM.

Post by Robert Sample »

no other job than which creates it can use the VSAM file
This would be handled through your site security package (RACF, ACF/2, TOP SECRET).
Post Reply

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 “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”