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
It sounds a interview or homework question to me.
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
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