|
|
| Author |
Message |
vice_versa Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 11
|
|
|
|
I design a system that may many job write/rewrite a vsam file at same
time(the shareption is (2,3),record length is 500,CISize=27000),But
system sometime report file status 93 -resource not available.
How to fix it?
thanks |
|
| Back to top |
|
 |
References
|
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1183 Location: Atlanta, GA
|
|
|
|
| What form of enqueue / dequeue do you use to ensure the writes or rewrites don't happen to the same CI at the same time? |
|
| Back to top |
|
 |
vice_versa Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 11
|
|
|
|
Robert,
enqueue / dequeue is for cics online program?
My program is batch program,how to resolve it?
thanks |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 9214 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| enqueue / dequeue is for cics online program? |
Not solely. . .
It is to provide a way to serialize the use of some resource. |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1183 Location: Atlanta, GA
|
|
|
|
| If you have multiple batch processes writing a VSAM file, you need to be able to ensure nobody updates the CI you're writing into; that's the whole point of enqueue and dequeue. They are used a lot in CICS because that's where multiple writes to a VSAM file are done mostly -- but if you're doing it in batch, you'd better be doing something similar or you'll have problems. You may have to write an Assembler subroutine to handle this. |
|
| Back to top |
|
 |
|
|