SBMJOB details
Page 1 of 1
SBMJOB details
I would like my CL program to send a message, displaying job queue information, when it runs the Submit Job (SBMJOB) command. Is this possible?
Yes. By adding the following commands in your submitting CL.
DCL VAR(&MSGID) TYPE(*CHAR) LEN(7)
DCL VAR(&MSGDTA) TYPE(*CHAR) LEN(256)
DCL VAR(&MSGF) TYPE(*CHAR) LEN(10)
DCL VAR(&MSGFLIB) TYPE(*CHAR) LEN(10)
SBMJOB CMD(command) ......
RCVMSG MSGTYPE(*LAST) RMV(*NO) MSGDTA(&MSGDTA) +
MSGID(&MSGID) MSGF(&MSGF) +
SNDMSGFLIB(&MSGFLIB)
SNDPGMMSG MSGID(&MSGID) MSGF(&MSGFLIB/&MSGF) +
MSGDTA(&MSGDTA) TOPGMQ(*PRV)
Yes. By adding the following commands in your submitting CL.
DCL VAR(&MSGID) TYPE(*CHAR) LEN(7)
DCL VAR(&MSGDTA) TYPE(*CHAR) LEN(256)
DCL VAR(&MSGF) TYPE(*CHAR) LEN(10)
DCL VAR(&MSGFLIB) TYPE(*CHAR) LEN(10)
SBMJOB CMD(command) ......
RCVMSG MSGTYPE(*LAST) RMV(*NO) MSGDTA(&MSGDTA) +
MSGID(&MSGID) MSGF(&MSGF) +
SNDMSGFLIB(&MSGFLIB)
SNDPGMMSG MSGID(&MSGID) MSGF(&MSGFLIB/&MSGF) +
MSGDTA(&MSGDTA) TOPGMQ(*PRV)
Similar topics
» SBMJOB question
» SBMJOB Hidden params
» How do we find the last IPL details?
» Record updated details
» File Record Access Details
» SBMJOB Hidden params
» How do we find the last IPL details?
» Record updated details
» File Record Access Details
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|