Checking to see If a job is active in a CL Program
I suggest something more like this: ALCOBJ OBJ((FILENAME *FILE *EXCL)) WAIT(32767) MONMSG CPF1002 EXEC(DO) /* Handle situation where you've waited for over 9 hours ENDDO
Checking to see If a job is active in a CL Program
Hallo *all, How can I test that job is active using a CL program? Two processes want to write to a particular file but process 1 has the file opened exclusively, therefore I want process 2 to wait a while. Thanks in advance for your help. EC
Checking to see If a job is active in a CL Program
Hallo FoxJ, Hallo SamL, Sorry that I took so long to reply, but I had a few weeks off work. I have now tested the solutions and the results were positive. It's easy when you know how. Many thanks and keep on keeping ! EC
Comment