RPGILer
25 pts. | Apr 9 2009 5:12PM GMT
Hello!
Martin is correct in that your program should not allow an invalid date or timestamp to be entered in the first place but here is how I search for the data that is invalid:
Perform WRKACTJOB and enter 5 for the option on the workstation where the error is displayed. Enter 10 to display the job log then F10 and F18 to go to the bottom. You should see a function check message which tells what statement number in which program the error is occurring at. If you look at your compile listing of the program for that statement number it will tell you which file the program is currently in and what date has invalid data in it.
The press F12 twice and enter 14 for open files. Press F11 to see what record in the file from your compile listing your program is using.
Display the file, on the Control line enter the record number from the previous step and look for the invalid date. You may choose to do runqry *n filename then go to the record number and look for the invalid date.
In most cases you would have to cancel out of the program with the error in order to correct the invalid date or timestamp then take an R to retry, if appropriate.






