30 pts.
0
Q:
Display File - error message
i have a error message of length 55. bt the window size is say 30..which means the window cannot hold the enitre msg and hence the error message needs to be split up..
how do i split up the error message..
hw and where should i need to make the modifications.
ASKED: Apr 16 2009  10:56 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
30 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
If you're using a error subfile you could write the message to two records - the user would have to page down to see the second half. I don't think there is a solution from ERRMSG or ERRMSGID. Write a shorter error message.

Phil

Hi

one of my team mate helped me out.
U can give teh keyword 'CNTFLD' (Continutiy field) against the error message field. but this keyword can be used only when the field is declared in both mode. 30 indicates that the first line will contain 30 characters and rest in the next line.
it looks like this..

A MSGA 55 B 10 22
A CNTFLD(30)

Anyways thanks for ur ans.
Last Answered: Apr 20 2009  3:31 PM GMT by Deepz   30 pts.
Latest Contributors: Philpl1jb   24080 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Sloopy   1930 pts.  |   Apr 16 2009  3:32PM GMT

If this is a ‘proper’ message subfile, then it will support the Help key to display second-level message text. You can write a shorter first-level text, with a standardised convention for showing that there is more text available if the HELP key is pressed (when the cursor is on the message).

EG:

Country code is invalid (more)

or

Country code is invalid (HELP)

or

Country code is invalid…

or

Country code is invalid (Alt | F1)

The second-level text for the message can carry the more detailed information, and can include substitution parameters like the First-level text.

Regards,

Sloopy (Alt | F1)

 

Yorkshireman   3200 pts.  |   Apr 17 2009  7:18AM GMT

- - - - - - - - - - - - - - - - - - -

The convention is for F1 to be help.

cursor on the message, press F1, and you see the 2500 bytes of second level message - or is it 5000 - I’ve never un out of space anyway.

You can also include variables into the message - do, please, use this facility.

‘Country code is invalid +’

‘The country code ABCDE you entered is not valid for a GHIJK transaction. Or, you selected a country code which is oncorrect’ You may alter the transaction type, or re enter the country code.

Yorkshireman

 
0