We utilize SQL within a program (SQLRPGLE) to delete all records in a QTEMP file prior to reloading the file.
However, we experienced a strange event where the program seemed to process an array of records which shouldn't exist together and the possible cause is that the DELETE failed prior to rebuilding the file.
Could this delete statement fail?
For example; could the first record in the file be locked and cause the statement to fail?
Thanks for any help you can offer.
Code:
c/exec sql c+ DELETE FROM qtemp/AFILE WITH NC c/end-exec
Could this delete statement fail?
For example; could the first record in the file be locked and cause the statement to fail?
Thanks for any help you can offer.





Comment