I have a pretty simple CL code that if a certain condition is met, I want to send a break message to a user's workstation. If that user is not signed on , I want to send it to another user.
If I run from command line, I get error CPF2429. But if I run it from a CL program, the exec (DO) part of my monmsg is ignored.
What am I missing here?
SNDBRKMSG MSG(&BRKMSG) TOMSGQ(BILLLAN2)
MONMSG MSGID(CPF2429) EXEC(DO)
SNDBRKMSG MSG(&BRKMSG) TOMSGQ(DALEXP1) MSGTYPE(*INFO)
ENDDO
When this code is executed, the exec(do) part is skipped over.
If I run from command line, I get error CPF2429. But if I run it from a CL program, the exec (DO) part of my monmsg is ignored.
What am I missing here?
SNDBRKMSG MSG(&BRKMSG) TOMSGQ(BILLLAN2)
MONMSG MSGID(CPF2429) EXEC(DO)
SNDBRKMSG MSG(&BRKMSG) TOMSGQ(DALEXP1) MSGTYPE(*INFO)
ENDDO
When this code is executed, the exec(do) part is skipped over.
Comment