|
View previous topic :: View next topic
|
| Author |
Message |
Deepakgoyal2005
New User

Joined: 22 Mar 2007 Posts: 57 Location: India
|
|
|
|
Hi,
In a PANEL i have coded PROC as -
| Code: |
)PROC
.ZVARS = '(PTKT POCC PSYS PRDT PSTS PREV PASS PETC PPRT PDES)'
&TPFKEY = .PFKEY
IF (VER(&PSYS,LIST,CS,RS,*))
ELSE
.MSG = MSG001
EXIT
)END
|
to verify the value of variable "PSYS" to be CS/RS/*
Message library has member MSG00 coded as -
| Code: |
MSG001 'INVALID VALUE' .ALARM=YES
'ENTER VALUE AS CS/RS/*'
|
The short message is displayed for any invalid value in field "PSYS" and long message is displayed on pressing the F1 function key.
I want the long message to be displayed on screen when an invalid value is entered without pressing any funtion key as the short message is displayed. |
|
| Back to top |
|
 |
Pedro
Global Moderator

Joined: 01 Sep 2006 Posts: 2624 Location: Silicon Valley
|
|
|
|
1. Use the GETMSG service to get the message text into a variable.
2. Add the variable name to your panel. |
|
| Back to top |
|
 |
Marso
REXX Moderator

Joined: 13 Mar 2006 Posts: 1356 Location: Israel
|
|
|
|
| Leave the short message empty. The long message will be immediatly displayed. |
|
| Back to top |
|
 |
Deepakgoyal2005
New User

Joined: 22 Mar 2007 Posts: 57 Location: India
|
|
|
|
Thanks Marso and Pedro for your inputs.
Deleting short description solved my problem. |
|
| Back to top |
|
 |
|
|