As I read the posts, the OP does not really want the functionality that the subject seems to state (or that I was thinking, anyway: stop running me and start running the other). They want the initial task to keep running for a while. If the other task is a new task, then Ed Jaffe's suggestion of ATTACHing with DISP=NO seems like a good approach (or have the task when it starts wait on a 'ready to proceed' ECB). If the other task is an existing task, then don't wake it up until you're ready for it to run.
Everything in dispatching in the system is a question of priority. The system isn't going to listen to you in general about what you think you want to run next. You make a work unit ready to run (such as by posting an ECB that an RB is waiting on). When the work unit gets dispatched is not within your control. Peter Relson z/OS Core Technology Design ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
