Recieving a diagnostic message in program

435 pts.
Tags:
AS/400
CL
CL Program
Network diagnostics and measurements
hi

i want to recieve message text of diagostic message that encounters in program .I want it in a variable so that i can write it into a error log file .Please suggest a way to trap them and to have the text.

i tried using RCVMSG but it dint wor out.

 

thanks



Software/Hardware used:
as400

Answer Wiki

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

MoniTor
:
:
:
On-Error
do_something
:
:
End-Monitor

-Sarge

=========================================================

<i>i tried using RCVMSG but it dint wor out.</i>

RCVMSG is a correct way to do it in CL. If it didn’t work out, then you need to show us what you did so we can determine what was wrong.

If you are working in a language such as RPG, the correct method would be to use the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/QMHRCVPM.htm”>Receive Program Message (QMHRCVPM) API</a>. The API can also be used in CL, but the RCVMSG command might be easier to use.

Tom

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