Error msg not showing on display screen in AS/400

310 pts.
Tags:
AS/400
CLLE
DSPJOBLOG
RPGLE
SNDPGMMSG
hi , i am using a rpgle with display file , & calling a clp . in cl i am using SNGPGMMSG command , i just want to see the error messange on display screen, but its not showing , it is going somewhere else. i can see that error message in DSPJOBLOG. but it should display on display screen. is there any way to do this.. Thanks ... :)

Software/Hardware used:
AS400,CLLE,RPGLE

Answer Wiki

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

Why not have the RPG program put the message on the screen?
Phil

Discuss This Question: 4  Replies

 
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
  • TomLiotta
    Most likely, you're sending it to the joblog or a program message queue (and the program isn't displaying its messages) instead of to the display. But it's hard to tell what might need to be changed without seeing the code. Tom
    125,585 pointsBadges:
    report
  • CharlieBrowne
    What is in the parameter for where you are sending it? Is it going to the users message queue or workstation queue? Do you need to have those set to be in break mode?
    41,370 pointsBadges:
    report
  • Ambrish 82
    This is source of clp which is called by rpgle, i am passing member name , Source file,Library as a entry parameter , & want show the source of that member , if there is any arror the it should be display on display screen .( where i am using msg subfile) /****************** PGM PARM(&MLFILE &MLLIB &MLNAME) DCL VAR(&PGMSGQ) TYPE(*CHAR) LEN(10) DCL VAR(&MLFILE) TYPE(*CHAR) LEN(10) DCL VAR(&MLLIB) TYPE(*CHAR) LEN(10) DCL VAR(&MLNAME) TYPE(*CHAR) LEN(10) DCL VAR(&MSGID) TYPE(*CHAR) LEN(7) MONMSG MSGID(CPF0000) EXEC(GOTO CMDLBL(ERROR)) CHGVAR VAR(&PGMSGQ) VALUE('DSPfdc') STRSEU SRCFILE(&MLLIB/&MLFILE) SRCMBR(&MLNAME) + OPTION(5) GOTO CMDLBL(ENDPGM) error: RMVMSG PGMQ(*PRV) CLEAR(*ALL) RCVMSG MSGID(&MSGID) SNDPGMMSG MSGID(&MSGID) MSGF(QEDTMSG) TOPGMQ(*prv) ENDPGM: ENDPGM *************************/ Thanks
    310 pointsBadges:
    report
  • TomLiotta
    TOPGMQ(*prv) You're sending to the program message queue of the entry on the call stack above the CL. Assuming that the CL is compiled as a program, what does the entry above it in the call stack do with messages on its program message queue? Tom
    125,585 pointsBadges:
    report

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