If you are trying to free and allocate a file from CICS, then you might have
better response from the CICS list.

To join, if you have not done so,
CICS    http://www.listserv.uga.edu/archives/cics-l.html

There are some functions you cannot perform in CICS because it will tie up CICS
and impact the users.  

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of [email protected]
> Sent: Sunday, February 14, 2016 3:01 PM
> To: [email protected]
> Subject: Would ISGQUERY be the proper Service
> 
> Hello,
> .
> I have a Started Task (STC), and sometimes a another job will hold a VSAM
> dataset needed by this STC. This prevents the STC from properly re-opening the
> dataset.
> .
> The VSAM datasets are defined with Share Options are 2,3 and Transactional
> VSAM (RLS) is not an option.
> .
> .
> Im looking for a z/OS macro or callable service that will allow the Started
> Task to identify the name of the other job that has opened a VSAM dataset
> which the Started Task needs.
> .
> .
> I started reading the description of the ISGQUERY and its various Mapping
> Macros but I dont see where it would returns the name of a batch job that has
> allocated the dataset.
> .
> I suspect I would use GATHERFROM=SYSTEM  with SCOPE=SYSTEM, since the batch
> processing occurs on the same LPAR as the Started Task.
> 
> Is ISGQUERY the proper macro/service to accomplish this ?
> .
> Would someone provide some sample code and point me to the proper
> macro/service to invoke to accomplish this.
> .
> .
> The Started Task happens to be a CICS Address Space and we would use a
> standard CICS Supplied Open Exit to drive this.
> .
> .
> Paul
> *************
> *************
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to