Message not showing in display file window !!!

435 pts.
Tags:
AS/400
hi I am using QMHSNDPM api for showing message . but its not showing in display file window . I am using following code:
D SndPgmMsg       PR                  ExtPgm('QMHSNDPM')      
D                                7A                           
D                               20A   Const                   
D                              100A   Const Options(*Varsize) 
D                               10I 0 Const                   
D                               10A   Const                   
D                               30A   Const Options(*Varsize) 
D                               10I 0 Const                   
D                                4A   Const                   
D                               30A   Options(*Varsize)  
D MsgData         S            100A                         
D Err             S              7A   Inz(' ')              
D Msg_file        S             20    INZ('QCPFMSG   *LIBL')
D RmvMsg          S              7A   Inz('CPI9801')        
D DspMsg          S              7A   Inz('CPF9898')    
/Free
msgdata='abc';
SndPgmMsg(RmvMsg:msg_file:' ':0:'*STATUS':                
          '*EXT':1:' ':DsEc);                             
SndPgmMsg(DspMsg:msg_file:%Trim(@MsgData):%Size(@MsgData):
          '*STATUS':'*EXT':1:' ':DsEc);                       
Don't know why its not working used the same piece of code before and it worked fine earlier
    


Software/Hardware used:
as40

Answer Wiki

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

Discuss This Question: 2  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
  • deepu9321
    It looks fine, How should it be if you can change SFLPGMQ name as defined in SFLMSG. Instead of using *EXT, you can specify the SFLPGMQ name as defined in display file. As you have mentioned, It was working fine, Then you should be verifying the Attributes in the Display File(Like, SFLPGMQ name, OVERLAY). Still If you cant be able to get the message on your screen, check the Joblog for the error message. Pradeeep
    3,695 pointsBadges:
    report
  • Splat
    What does the display file message subfile look like?
    7,185 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