Page 1 of 1

Getting a reload problem with VSAM.

Posted: Sat Oct 17, 2015 10:16 pm
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?

Re: Getting a reload problem with VSAM.

Posted: Sat Oct 17, 2015 10:20 pm
by enrico-sorichetti
define the file with the REUSE option
or delete define it every time.

Re: Getting a reload problem with VSAM.

Posted: Sat Oct 17, 2015 11:49 pm
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?

Re: Getting a reload problem with VSAM.

Posted: Sun Oct 18, 2015 9:15 am
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.

Re: Getting a reload problem with VSAM.

Posted: Sun Oct 18, 2015 6:31 pm
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).