I have a CL program that runs 2 SQL statements to update a file but there is a succeeding program that also updates the same file. The succeeding program has gone into LCKW because of the SQL program, I think. Should I just put ALCOBJ to make sure the file is locked to my program and the next program has to wait for my program to finish? This is my first time to use SQL to update in a CL program.
I used RUNSQL to execute both UPDATE statements.
Is there a more efficient way to do this?
I used RUNSQL to execute both UPDATE statements.
Is there a more efficient way to do this?
Comment