× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



mschutte@xxxxxxxxxxxx wrote:
I thought of that too, but I couldn't figure out a way to determine what
SUBSYSTEM I was running in with a CL command.  But yes, I did decide on
using QUSRJOBI API.  It's working wonderfully, at least in the TEST
environment it is.  ** ALL SMILES**


I'm a bit confused. If you use Sys-Rq 1 to start another job, isn't it too in QCTL? It's only if you have multiple sessions on the terminal (alt-jump) that you have to worry about which subsystem it is.

I haven't tested the backup with multiple jobs running on the console, though I have signed on the other session after some kind of backup failure.

I use a "horrible" method to retrieve my SBS name and verify that the job is in QCTL. I think there is also an API that will do it (isn't that the one you are using?)

Anyway, I 'DSPJOB OUTPUT(*PRINT) OPTION(*STSA)' the CPYSPLF and parse the PF with RCVF.

IF         (%SST(&ACTIVE 4 9) *EQ 'Subsystem') THEN(DO)
    IF COND(%SST(&ACTIVE 53 10) *NE 'QCTL      ') THEN(DO)
        SNDPGMMSG  MSG('Your job is currently NOT running in QCTL')
    ENDDO
ENDDO

Of course, it's "horrible" because IBM *could* change the layout of the splf without me knowing about it. This isn't a big deal for us, typically. I normally do the upgrades and will be the first to call in the backup afterward. YMMV.

--
Sean Porterfield

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.