How to display error message without using error message but from complete file time array

515 pts.
Tags:
AS/400 administration
AS/400 errors
Display File
RPG IV
DEAR,
HI I HAVE TO DISPLAY ERROR MESSAGES LIKE WHEN I ADD EMPLOYEE CODE,MY PROGRAM SHOULD DISPLAY ERROR MESSAGE AS "EMPLOYEE ALREADY EXISTS"...
ONE THING I SHOULD NOT USE ERROR MESSAGE OR ERRMSGID
SIMPLE DISPLAY FILE...
NOT USING SUBFILE...
THEN MAINLY
I AM USING COMPILE TIME ARRAY as err1...
VALUES LIKE
**
RECORD ALREADY EXISTS
INVALID USER 
CANT DELETE THIS USER
.
..
.
.
.
LIKE SAY 10 ERROR MESS I AM GIVING IN COMPILE TIME ARRAY AS VALUES
NOW I HAV TO GET  FIRST VALUE OR ANY OF THESE 10 VALUES..
err1,1... how to display it in display file
HOW TO DISPLAY IN DISPLAY FILE...
I THINK I HV CLEARLYEXPLAINED MY QUESTION...pLEASE REP AS SOON AS POSSIBLE......


Software/Hardware used:
AS400

Answer Wiki

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

Why can you not use Error Message or ERRMSGID?
Is this a question on a test or job application?
Or is there an actual business case for this?
If it is the later, please let us know why your compay will not allow it.
If it one of the initial reasone, you need to do some homework yourself.
Let us know the business case and we will be glad to help.

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
  • HMSSL2K
    It sounds a interview or homework question to me.
    3,175 pointsBadges:
    report
  • YuVa47
    Your questions sounds as you are just started to work with RPG, so I would suggest to fins some useful sites and make some homework. Here is one that would help you a lot: http://rpgiv.info/mambo/index.php?option=com_frontpage&Itemid=51 Good Luck YuVa
    1,300 pointsBadges:
    report
  • TomLiotta
    The question involves displaying the content of a program variable in a display file. The program variable has its value assigned from an element of a "COMPILE TIME ARRAY". But the program variable is just another text variable, like a name or an address. The question is practically the same as "How do I display a name or address in a display file?" Because this appears to be interview/homework as others have said, that's about as far as an answer can go. Tom
    125,585 pointsBadges:
    report
  • 22917
    [...] 8. CharlieBrowne, HMSSL2K, YuVa47, and TomLiotta joined the discussion on how to display an error message without using an error message but from complete file time array. [...]
    0 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