Scott, There are lots of ways to do this. Some of the questions you have to first ask are: 1) Are the tasks asynchronous to each other? 2) Can there be more than one slave task? 3) What are you attempting to accomplish with sub tasks?
Generally, you want a sub task to do something while the parent task is doing something else. I typically use FIFO queues to schedule work for the sub task and another one for completed work, or the work element has an ECB that the caller can issue a WAIT on. When you use a queue between two tasks, you will need to do some form of locking of the queue. The PLO instruction will let you put an element on or take one off a queue as a single unit of work. It is a beast of an instruction that takes like 10 pages to explain in the POOP manual. As Ed pointed out you can use PAUSE/RELEASE in place of WAIT/POST. PAUSE/RELEASE has an additional function called TRANSFER that combines the two and short-cuts some of the dispatcher code. It tends to be faster than WAIT/POST, but there is more to initially setup than for WAIT/POST. SRBs are a whole lot more complicated and solve different problems. A good starting place for your research is the Assembler Services Guide and the Authorized Assembler Services Guide. Chris Blaicher Principal Software Engineer, Software Development Syncsort Incorporated 50 Tice Boulevard, Woodcliff Lake, NJ 07677 P: 201-930-8260 | M: 512-627-3803 E: cblaic...@syncsort.com -----Original Message----- From: IBM Mainframe Assembler List [mailto:assembler-l...@listserv.uga.edu] On Behalf Of Scott Ford Sent: Tuesday, August 27, 2013 5:28 PM To: MVS List Server 2 Subject: Task to subtask communications All: I have a main task that does an Attach to another program. I do not want the Attached program to end but be able to communicate with the main task. I am not clear on how to do this ...Can someone point the way a tad for me ? Is this in the realm of SRBS ? Scott J Ford Software Engineer http://www.identityforge.com/ ATTENTION: ----- The information contained in this message (including any files transmitted with this message) may contain proprietary, trade secret or other confidential and/or legally privileged information. Any pricing information contained in this message or in any files transmitted with this message is always confidential and cannot be shared with any third parties without prior written approval from Syncsort. This message is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any use, disclosure, copying or distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and/or Syncsort and destroy all copies of this message in your possession, custody or control. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN