+ Reply to Thread
Results 1 to 2 of 2

Thread: Subsystem-Start it, if not active

  1. #1
    Guest.Visitor Guest

    Default Subsystem-Start it, if not active

    On Friday, June 26, 1998, 05:22 AM, Ron Quagliani wrote: Is there a way to monitor whether a subsystem is active or not? and, if it is not active to make the subsystem start back up? We have the need for a user-defined subsystem to run 24 hours a day 7 days a week. Thank you In the controlling subsystem you could define an autostart job entry, a job queue, and a class. Given that: One method is to have the autostart job in the controlling subsystem run a program which first STRSBS and then does an ALCOBJ ((UDSbs *SBSD *EXCL)) WAIT(*CLS); the job has DFTWAIT(*NOMAX) from the class. When the allocate occurs, then deallocate and loop back to STRSBS request. Another method has the program doing a STRSBS UDSbs followed by a SBMJOB CMD(CALL AJEpgm) JOBQ(ctlsbsjq) and then the previously noted allocate; the job queue must allow only one job to be active to that subsystem -- since the other job is queued up to repeat the action, it will start only after the previous job ends, after the subsystem ends. A third method would have the above program wait on a message queue after the STRSBS, upon receipt of a message would re-start it. This requires the UDSbs to have an AJ which starts commitment control with a notify object of a message queue. When the commitment control is terminated, the message is sent to the queue. A fourth method is to create an Alert situation for the termination of a subsystem, use the alert data from a data queue which the ctl sbs job's AJ is on an infinite wait; review the data for the subsystem name, if not ignore, otherwise STRSBS. Loop back to the wait. There are of course caveats for each method; eg. in the third, if the AJ is ended vs the SBS, then it is an invalid notification. Other concerns are the AJ in the controlling subsystem being ended or someone holding a jobq or a job, etc. Regards, Chuck Comments provided "as is" with no warranties of any kind whatsoever.

  2. #2
    Guest.Visitor Guest

    Default Subsystem-Start it, if not active

    Don't know if this will help or not since I don't have the manual in front of me, but there are several Work Management API's that deal with subsystems. You might want to check them out and see what you can put together for a monitor program.

+ Reply to Thread

Similar Threads

  1. Active Jobs in a Subsystem
    By Guest.Visitor in forum CL
    Replies: 4
    Last Post: 11-04-2004, 09:47 AM
  2. Subsystem
    By bcbose@yahoo.com in forum CL
    Replies: 1
    Last Post: 01-16-2002, 04:34 AM
  3. Is TCP/IP subsystem auto start?
    By Guest.Visitor in forum Networking
    Replies: 2
    Last Post: 12-01-2000, 07:03 AM
  4. Subsystem
    By Guest.Visitor in forum Analysis
    Replies: 3
    Last Post: 01-19-2000, 02:23 PM
  5. Creating a new subsystem
    By Guest.Visitor in forum Analysis
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts