How to see both SNDPGMMSG of two programs

5 pts.
Tags:
Send Program Message
SNDPGMMSG
i have created two programs. say CALL1 and CALL2. CALL1 Program... PGM CALL PGM(MYLIB/CALL2) SNDPGMMSG MSG('SHANMUKMHA') ENDPGM CALL2 Program SNDPGMMSG MSG('hi how r u') So how can i get the output as 'hi how r u shanmukha'...? can anyone help me out............ by Shanmukha
ASKED: November 4, 2008  7:49 AM
UPDATED: February 13, 2009  4:07 AM

Answer Wiki

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

How about this:

CALL1 Program

PGM
DCL &MSGDTA *CHAR 50

CALL PGM(MYLIB/CALL2) PARM(&NAME)

CHGVAR &MSGDTA ‘hi how r u ‘ *CAT &NAME
SNDPGMMSG MSGID (CPF9898) MSGDTA(&MSGDTA)
ENDPGM

CALL2 Program

PGM PARM(&NAME)

DCL &NAME *CHAR 40

CHGVAR &NAME ‘shanmukha’
ENDPGM

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