My comment about - not everything is good to be done in CICS was the main reason
to for the suggestion.  If you put CICS in a wait state while an MVS function
goes off and "does something", then all of CICS waits.  So, you should be wary
when using come functions that are easily done in MVS but could be harmful to
CICS.

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of [email protected]
> Sent: Monday, February 15, 2016 6:50 AM
> To: [email protected]
> Subject: Re: Would ISGQUERY be the proper Service
> 
> Im not trying to free and allocate CICS.
> I want to identify the current job that has a dataset allocated when my STC
> needs it.
> 
> ---------- Original Message ----------
> From: Lizette Koehler <[email protected]>
> To: [email protected]
> Subject: Re: Would ISGQUERY be the proper Service
> Date: Sun, 14 Feb 2016 16:12:47 -0700
> 
> 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