Display multiple messages at bottom of screen in AS/400

3,995 pts.
Tags:
AS/400 Subfiles
Subfile
I need to display multiple messages at bottom of screen.Is there an alternate way of displaying multiple error messages rather than using message subfile...if so can you give me a simple example
ASKED: December 29, 2008  2:53 PM
UPDATED: August 23, 2013  4:58 PM

Answer Wiki

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

Hi,

I think a message subfile is your best option and I would advise you to use one unless you have a specific reason not to.

There are however several other options for displaying messages :-

1. You could define your own field at the bottom of the screen and fill this with your message, then handle the rollkeys in your program to move to the following or previous message.

2. You could add message constants and condition them with indicators (this is likely to get pretty messy, isn’t easy to maintain and will restrict the number of messages that you can display).

3. You could use CHKMSGID if you want simple validation.

4. You could use ERRMSG or ERRMSGID keywords on your screen.

I’m sure someone can give you some more options and/or examples of displaying messages on your screen.

Regards,

Martin Gilbert.

Discuss This Question: 5  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
  • philpl1jb
    This depends how much real estate (screen space) you have available You could make screen fields: MSG001 row 20 col 2 length 78 output MSG002 row 21 col 2 length 78 output MSG003 row 22 col 2 length 78 output MSG004 row 23 col 2 length 78 output clear these and then add your messages as needed. Phil
    48,575 pointsBadges:
    report
  • Ben Rubenstein
    should i use these as output variables and move the error messages...not coded using msgsfiles before that is y wanted to know if other options are available...
    0 pointsBadges:
    report
  • Ben Rubenstein
    if msgsubfile is the best option i will go ahead with it...but a small sample would help...like moving 1 message or so
    0 pointsBadges:
    report
  • philpl1jb
    Message subfile is the way to go http://www.code400.com/messagesubfile.php
    48,575 pointsBadges:
    report
  • IMisnothing
    when i checked i found the msg saying *SYSTEM - The command was not found in library QSYS. how do we go about further?
    130 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