![]() |
|
#1
|
|||
|
|||
|
I am looking to create a batch job to check if a CICS VSAM file is open or not. Does anybody know of a way to do this without trying to open the file and checking the return code?
|
|
#2
|
||||
|
||||
|
you mean OPEn and ENAbled?
requires setup, but IBM has a facility called The EXCI programming interfaces Allows you to issue CICS commands thru batch, e.g. CEMT. Not only can you inquire, you can CLose and DISAble, and then OPEn and ENAble after the batch run. there are a million third party tools that do this, also.
__________________
Dick Brenholtz American in Varel, Germany |
|
#3
|
||||
|
||||
|
The EXCI solution is the best. We do that here, so our batch jobs can control the opening/closing of our CICS/VSAM files. Not every shop has EXCI services set up though.
Depending upon your scenerio, you may prefer to design an application solution. The processes that cause the file to OPEN could be modified to update a state-field in a DB2 row. Then your batch application could query this DB2 row to determine the files state. Code:
And of course you'd have to design another event to set FILE_STATE to 'CLOSED' at the appropriate time. Last edited by petwir : 07-14-2010 at 01:04 PM. |
|
#4
|
|||
|
|||
|
We use something called DADS for that.
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|