Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to reply to message by program (CPA3311)

Status
Not open for further replies.

francoisf

Programmer
Feb 11, 2004
30
0
0
FR
Hi !
A program of mine send a message (after a CPYSPLF command).
I don't want the user have to reply to it.
So i've to reply to it by program.

This is the description of the message :

Message ID. . . . . . : CPA3311 Gravity . . . . . . . : 99
Message type . . . : Interrogation
CCSID . . . . . . . . : 65535

From Program . . . . . : QSPCPYF
Library. . . . . . . . : QSYS
Instruction . . . . . . . . : 0769

Destination program . . . : *EXT

I would like my program to reply automatically to this message.
MONMSG command doesn't work, but perhaps a way exists using RCVMSG or SNDRPY or other command...?

Thanks for your help !

 
First, use ADDRPYLE[/b} (Add Reply List Entry) to add the message and specify the reply.

Then, for the job, change the job with

CHGJOB INQMSGRPY(*SYSRPYL).

(You can also change a job description this way; the CHGJOBD has the same parameter).

You have to use either CHGJOB or CHGJOBD to make the reply automatic.

De mortuis nihil nisi bonum.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top