Simply insert a DSPRCDLCK command (or a series of them) to display record locks for all the files involved, into the CL program. This allows the user to see and deal with any record locks before starting the process. You may want to include a mechanism that allows the user to loop back up and recheck all files again. A programming solution would be better if you have that option - but based on the way you asked the question, I assume you cannot modify the code for one reason or another. I hope this helped. Kevin

Reply With Quote