Joined: 16 May 2005 Posts: 32 Location: Millenium Business Park, Mumbai
Hello,
Though I have around 5 yr of exp on IBM Mainframes however I am quite new to AG NATURAL.
I have a online screen where if I do not enter anthing against a variable , it shows me a error at the top -
Code:
ZZZZ- Field can not be balnk. Please enter data PF13=HELP
Now if I hit PF13, it shows me pop up "Error Information Window" where at the bottom few PF keys are assigned to some functionality ..e.g. PF6 - EFRWD , PF8 RFRWD and PF10 EXIT.
Now if I hit PF10 to come out from error window to original screen it gets terminated and shows error in orig pgm like below -
PROGRAM NAME ................ZZZZZZZZ
ERROR MESSAGE ..............1108
ERROR LINE.......................5350
If it was a CICS pgm I could have fixed it but I am not sure how should I proceed with NATURAL...I just explored the pgm and found the line 5350 which throws the error - and that line contains the REINPUT statement.
Code:
REINPUT #ERR-MSG-TEXT MARK *#PARENT-ZZZ-ID
I would really appreciate if anyone offer me help to find the exact issue.
I am assuming, due to the "code" you posted, that the problem is not an AD=E setting for the field you did not enter data for.
Hence, you must have code such as:
INPUT ... #INPUT
IF #INPUT = ' '
::::
END-IF
Take a look at the logic within the IF clause. As noted by ofer71, an 1108 is quite a simple error message. In order to do a REINPUT, the original INPUT screen must still "exist". However, a statement such as WRITE, DISPLAY or PRINT erases the original INPUT screen from Natural's buffer. Hence, the 1108.
The real "problem" is probably the logic in your IF clause; the 1108 is merely the result of your logic problem.