|
HTH, --------------------------- PGM (&P1 &OUTQLIB &P3) DCL &P1 *CHAR 1 DCL &OUTQLIB *CHAR 20 DCL &P3 *CHAR 1
DCL &OUTQ *CHAR 10 DCL &LIB *CHAR 10 DCL &RC *CHAR 1
CHGVAR &OUTQ %SST(&OUTQLIB 1 10) CHGVAR &LIB %SST(&OUTQLIB 11 10)
IF (&RC *NE '1') THEN(DO) /* If RC<>'1' then reject command */ SNDPGMMSG MSGID(CPD0006) MSGF(QCPFMSG) MSGTYPE(*DIAG) + MSGDTA('0000 You are NOT AUTHORIZED to Queue' *BCAT + &OUTQ *BCAT 'in Library' *BCAT &LIB) SNDPGMMSG MSGID(CPF0002) MSGF(QCPFMSG) MSGTYPE(*ESCAPE) ENDDO ENDDO
ENDPGM ---------------------------- David A Parnin wrote:
Good morning all,
We have a situation where someone appears to be clearing an outq for a printer used by many people. There's no real need for any user to be using the CLROUTQ command or choosing option 14 from WRKOUTQ. What we would like to do is to log the user-id of people trying to do this and give an error message to any non-MIS people.
My boss initially suggested creating a modified CLROUTQ command that was
higher in the library list than the system command. Over the weekend I
started wondering if an exit program could do the job. I've never
attempted an exit program before but wouldn't mind learning. I've seen
examples for FTP and Telnet in the archives but can they be added for any
command?
-- Antonio Fernandez-Vicenti afvaiv@xxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
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.