I got a physical file with a date type field. Iam trying to input the data for that field. I have declared a decimal field on screen for it, with length 8. And I have written one RPGLE program for writing that data to file. For this I've used two data structures. One to store the screen data and the second one to convert it to the physical file date format i.e. 'YYYY-MM-DD'.
The second data structure contains splitted fields to get the above format. Here Iam getting the run time error i.e. 'Date Timestamp error'.
Is there any way to rectify this problem?
The second data structure contains splitted fields to get the above format. Here Iam getting the run time error i.e. 'Date Timestamp error'.
Is there any way to rectify this problem?
Comment