Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Checking to see If a job is active in a CL Program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Checking to see If a job is active in a CL Program

    Place this code in both processes prior to trying to use the file.
    Code

  • #2
    Checking to see If a job is active in a CL Program

    Foxj, Thanks for your reply. I will try your code tomorrow. Have a nice day now! EC

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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

          Working...
          X