You could consider having a "file owning" TCB (FO-TCB) within your server, 
design structures that describe "a file" and "a file action request" and then 
you can send requests to some sort of queue monitored by the FO-TCB from your 
sub-tasks to open or close files.

Your ESTAEs (or RESMGRs or EOT exit routines) can then just place a request on 
the FO-TCB request queue to close the file.  

Rob Scott
Lead Developer
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.2305
Email: rsc...@rs.com
Web: www.rocketsoftware.com


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of 
Donald Likens
Sent: 07 September 2011 16:45
To: IBM-MAIN@bama.ua.edu
Subject: subtask recovery

In the "IP Sockets Application Programming Interface Guide and Reference" IBM 
discusses data services task (DST). This uses sub-tasks to do I/O. When I 
designed my program using DSTs I had a problem I could not resolve. I have been 
informed by IBM that sub-tasks are suspended during an abend and cannot be 
used. This means there is no way to close the files opened by the sub-tasks in 
my estae routine. Has anyone come with a solution to this problem?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at 
http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to