View previous topic :: View next topic
|
Author |
Message |
vice_versa Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 19 Location: usa
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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: 19 Location: usa
|
|
|
|
Robert,
enqueue / dequeue is for cics online program?
My program is batch program,how to resolve it?
thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|