Visit SDSUSA site please  

Go Back   mvsHelp Boards > Help Bulletin Board > VSAM
User Name
Password
-->
FAQ Search Manuals Calendar New Posts Search Today's PostsMark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-14-2010, 11:59 AM
DanM DanM is offline
Senior Member
 
Join Date: Jun 2001
Location: Madison, WI, USA
Posts: 43
Post Checking if a vSAM file is open

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?
Reply With Quote
  #2  
Old 07-14-2010, 12:08 PM
dbzthedinosaur's Avatar
dbzthedinosaur dbzthedinosaur is offline
Senior Member
 
Join Date: Nov 2005
Location: Varel, Germany
Posts: 1,306
Default

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
Reply With Quote
  #3  
Old 07-14-2010, 12:59 PM
petwir's Avatar
petwir petwir is offline
Senior Member
 
Join Date: Jun 1999
Location: Salem Oregon (Pacific Time)
Posts: 4,326
Default

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:
update <db2table> set FILE_STATE = 'OPEN' where <rowselectionrule> and FILE_STATE <> 'OPEN'

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.
Reply With Quote
  #4  
Old 07-14-2010, 01:18 PM
yarnseeker yarnseeker is offline
Senior Member
 
Join Date: Dec 2003
Posts: 2,185
Default Dads

We use something called DADS for that.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 07:41 AM.


Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.