|
Rob
you even have the same status message text as I have while waiting for the
subsystems to end...
Having said that I'd be interested in the reason (if any) Al is
recommending the message rather than what is a rather straightforward API.
Regards
Evan Harris
>Actually Al, I prefer:
>...
> ENDSBS SBS(*ALL) OPTION(*IMMED)
>...
> /*
>+
> | Verify that system is in restricted state.
>+
> */
> SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) +
> MSGDTA('Verifying that we are now in +
> restricted state.') TOPGMQ(*EXT) +
> MSGTYPE(*STATUS)
>SbsCheck:
> CALL PGM(QWCRSSTS) PARM(&RECEIVER &RECEIVERL +
> &FORMAT &RESET &ERROR)
>
> /*
>+
> | Restricted state flag is byte 31 (offset 30):
>+
> | 0 = not in restricted state
>+
> | 1 = restricted state
>+
> */
> CHGVAR VAR(&RSTDFLAG) VALUE(%SST(&RECEIVER 31 1))
> IF COND(&RSTDFLAG *EQ '0') THEN(DO)
> SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA('** +
> Waiting for subsystems to end') +
> TOPGMQ(*EXT) MSGTYPE(*STATUS)
> DLYJOB DLY(60)
> GOTO CMDLBL(SbsCheck)
> ENDDO
>...
>
>Rob Berendt
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.