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



Sample dtaq program
PGM
DCL &JOBNAME *CHAR 10
DCL &JOBUSER *CHAR 10
DCL &JOBNBR *CHAR 6
DCL &DTAQ *CHAR 10 VALUE('DONNY')
DCL &DTAQLIB *CHAR 10 VALUE('ROB')
DCL &OUTQ *CHAR 10 VALUE('DONNY')
DCL &OUTQLIB *CHAR 10 VALUE('ROB')
DCL &QLEN *DEC (5 0) VALUE(250)
DCL &QWAIT *DEC (5 0) VALUE(30)
DCL &QDATA *CHAR 250
DCL &SPLF *CHAR 10
DCL &SPLFNBR *CHAR 6 /* Unable to be determined */

CRTDTAQ DTAQ(&DTAQLIB/&DTAQ) MAXLEN(200)
CRTOUTQ OUTQ(&OUTQLIB/&OUTQ) DTAQ(&DTAQLIB/&DTAQ)

/* Wait on following for output, or 30 sec */
CALL PGM(QRCVDTAQ) PARM(&DTAQ &DTAQLIB &QLEN &QDATA +
&QWAIT)
IF (&QDATA=' ') THEN(GOTO PGMEND) /* Timeout */

CHGVAR &JOBNAME (%SST(&QDATA 13 10))
CHGVAR &JOBUSER (%SST(&QDATA 23 10))
CHGVAR &JOBNBR (%SST(&QDATA 33 6))
CHGVAR &SPLF (%SST(&QDATA 39 10))
CHGVAR &SPLFNBR ('???')
DMPCLPGM
PGMEND:
ENDPGM


Rob Berendt

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.