Validity Checking Program Message

25 pts.
Tags:
SNDPGMMSG
VCP
My VCP returns when an error in encountered but does not return the message. I have coded as per the documentation with the exception that I 'compose the message' instead of using a message file. (see below) CHGVAR VAR(&MSG) VALUE('ELEMENT ' *CAT &CURTXT *TCAT + ' - Member ' *CAT &RMBR *TCAT ' is already assigned ' + *CAT 'to ' *CAT &SRCTYPE *TCAT '.') CALLSUBR SUBR(MSG) RTNVAL(&RTNVAL) ------------------------------- SNDPGMMSG MSG(&MSG) TOPGMQ(*PRV) MSGTYPE(*DIAG) SNDPGMMSG MSGID(CPF0002) MSGF(QCPFMSG) MSGTYPE(*ESCAPE) ------------------------------ Any suggestions

Answer Wiki

Thanks. We'll let you know when a new response is added.

I think what you are missing is the message ID. Try something like this:

CHGVAR VAR(&MSG) VALUE(‘ELEMENT ‘ *CAT &CURTXT *TCAT +
‘ – Member ‘ *CAT &RMBR *TCAT ‘ is already assigned ‘ +
*CAT ‘to ‘ *CAT &SRCTYPE *TCAT ‘.’)

SNDPGMMSG MSGID(CPF9897) MSGF(QCPFMSG) MSGDTA(&MSG) +
TOPGMQ(*PRV) MSGTYPE(*DIAG)

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following