program crash, minus sign alone entered in numeric text box
Posted: Fri Oct 05, 2012 1:33 am
I have an input screen with a number of text boxes defined as decimal 6,0
If a user enters a minus sign alone into one of the text boxes and hits enter, they are returned to the rpg program which crashes with the following error I would have expected this invalid input to be trapped at the screen level without being returned to the rpg program.
How can I prevent my program from crashing on this type of invalid input being returned ?
Tony C
If a user enters a minus sign alone into one of the text boxes and hits enter, they are returned to the rpg program which crashes with the following error
Code: Select all
Message ID . . . . . . : RNQ1299 Severity . . . . . . . : 99
Message type . . . . . : Inquiry
Date sent . . . . . . : 05/10/12 Time sent . . . . . . : 14:40:28
Message . . . . : I/O error MCH1201 was detected in file CRNOTED (C G D F).
Cause . . . . . : The RPG procedure CRNOTELE in program WIL/CRNOTELE
received the message MCH1201 at statement 2512 while performing I/O
operation EXFMT on file CRNOTED. The actual file is *LIBL/CRNOTED.
Recovery . . . : Check the job log for more information on the cause of the
error and contact the person responsible for program maintenance.
Possible choices for replying to message . . . . . . . . . . . . . . . :
D -- Obtain RPG formatted printout of system storage.
S -- Obtain printout of system storage.
G -- Continue processing at *GETIN.
C -- Cancel.
More...
Reply . . . : C
How can I prevent my program from crashing on this type of invalid input being returned ?
Tony C