× 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.



Arrghh. Sorry about that. It's a custom program that yes, start (or stops)
printer writers). Here it is:

PGM PARM(&ACTION &HOW)

/* PARAMETERS */

DCL VAR(&ACTION) +
TYPE(*CHAR) +
LEN(10)
DCL VAR(&HOW) +
TYPE(*CHAR) +
LEN(10)

/* CONSTANTS */

DCL VAR(&START) +
TYPE(*CHAR) +
LEN(10) +
VALUE('*START')
DCL VAR(&END) +
TYPE(*CHAR) +
LEN(10) +
VALUE('*END')
DCL VAR(&IMMED) +
TYPE(*CHAR) +
LEN(10) +
VALUE('*IMMED')
DCL VAR(&CNTRLD) +
TYPE(*CHAR) +
LEN(10) +
VALUE('*CNTRLD')
DCL VAR(&IMMEDTXT) +
TYPE(*CHAR) +
LEN(11) +
VALUE('immediately')
DCL VAR(&CNTRLDTXT) +
TYPE(*CHAR) +
LEN(10) +
VALUE('controlled')

/* VARIABLES */

DCL VAR(&ACTTXT) +
TYPE(*CHAR) +
LEN(50)

/* SET ACTUAL TEXT */

IF COND(&HOW *EQ &IMMED) +
THEN(DO)
CHGVAR VAR(&ACTTXT) +
VALUE(&IMMEDTXT)
ENDDO
IF COND(&HOW *EQ &CNTRLD) +
THEN(DO)
CHGVAR VAR(&ACTTXT) +
VALUE(&CNTRLDTXT)
ENDDO

/* START WRITERS */

IF COND(&ACTION *EQ &START) +
THEN(DO)
SNDPGMMSG MSGID(USR9897) +
MSGF(MSG) +
MSGDTA('Starting all printer writers.') +
TOPGMQ(*EXT) +
MSGTYPE(*STATUS)
QSYS/STRPRTWTR DEV(P1) +
FORMTYPE(*STD)
MONMSG MSGID(CPF0000)
QSYS/STRPRTWTR DEV(P2) +
FORMTYPE(*STD)
MONMSG MSGID(CPF0000)
QSYS/STRPRTWTR DEV(P4) +
FORMTYPE(*STD)
MONMSG MSGID(CPF0000)
QSYS/STRPRTWTR DEV(P6) +
FORMTYPE(*STD)
MONMSG MSGID(CPF0000)
QSYS/STRPRTWTR DEV(P8) +
FORMTYPE(*STD)
MONMSG MSGID(CPF0000)
QSYS/STRPRTWTR DEV(ZEBRA1) +
OUTQ(ZEBRA) +
FORMTYPE(PKGLBL)
MONMSG MSGID(CPF0000)
QSYS/STRPRTWTR DEV(ZEBRA2) +
OUTQ(ZEBRA) +
FORMTYPE(PKGLBL)
MONMSG MSGID(CPF0000)
ENDDO

/* END WRITERS */

IF COND(&ACTION *EQ &END) +
THEN(DO)
SNDPGMMSG MSGID(USR9897) +
MSGF(MSG) +
MSGDTA('Ending all printer writers' *BCAT &ACTTXT *TCAT +
'.') +
TOPGMQ(*EXT) +
MSGTYPE(*STATUS)
QSYS/ENDWTR WTR(*ALL) +
OPTION(&HOW)
ENDDO

/* FORWARD ALL RECEIVED MESSAGES */

FWDPGMMSG MSGTYPE(*ALL)

ENDPGM


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.