510 pts.
 How to display error message without using error message but from complete file time array
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
ASKED: March 20, 2011  8:56 AM
UPDATED: March 22, 2011  8:59 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  March 21, 2011  1:28 pm  by  CharlieBrowne   32,785 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,785 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It sounds a interview or homework question to me.

 3,175 pts.

 

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,285 pts.

 

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

 107,765 pts.