Are repeated Val_Errors a problem?
Posted: Thu Jan 03, 2019 9:27 pm
Running on iSeries in an RDML function I have
I end up calling this function from the VLF and sometimes it fails. Through some debugging, I found that Val_Error was triggered (which would be logical in this situation) but then the code fails on the second run-through.
Is this possible? Am I missing something here? Or do you have a good suggestion how this could be done differently?
I need #SIFAK to be sequentially increased.
Code: Select all
FI2: Fetch Fields(#SIFAK) From_File(FIRCSP) With_Key(#SLAND)
Change Field(#SIFAK) To('#SIFAK + 1')
Update Fields(#SIFAK) In_File(FIRLSP) Io_Error(FI2) Val_Error(FI2)
Is this possible? Am I missing something here? Or do you have a good suggestion how this could be done differently?
I need #SIFAK to be sequentially increased.