|
I seem to remember reading a discussion about this once. I remember one person made a break handling program on the QSYSOPR message (CHGMSGQ) and it would monitor for a specific message. Then it would do the ENDSBS *ALL *IMMED. This way it was the console, and if it wasn't it would need to be MONMSG'd. I never persued this myself, but seemed like an interesting option. I don't know about you, but this is the kind of thing that is always a bear to test. If I wanted to test something like that, I'd have to come in on Sunday when we were about to go into restricted state anyway. If I was lucky, I'd get 2 or 3 attempts before the Operators insisted they needed to continue. >For our weekly backup program, we want to end the system to a restricted >condition. The program works great when run from a command line, but bombs >when run from the internal job scheduler (WRKJOBSCDE) or the advanced job >scheduler (GO JS). The error message I'm getting is: > >4800 - ENDSBS SBS(*ALL) OPTION(*IMMED) >CPF1052 Escape 40 ENDSBS *ALL not allowed in current environment. > ENDSBS *ALL is not allowed only from an interactive job that is >started from a *SIGNON workstation entry in the controlling subsystem. >ENDSBS *ALL is not allowed from a target pass-through job. > >The job is submitted to the QCTL subsystem, running as user QSYSOPR. > >Is there an easy way around this? > >Thanks! >Loyd +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.