+ Reply to Thread
Results 1 to 2 of 2

Thread: Issuing an EndJob for a Prestart Job

  1. #1
    Guest.Visitor Guest

    Default Issuing an EndJob for a Prestart Job

    Hi !! I have a small application on AS400 that has some part running on the source server and then I issue a runrmtcmd to call a target server driver progam so that rest of the processing is done on the target server.(Both are AS400 servers). However, even after the controls return to the source server, some files and library objects stay locked by this remote server job (123456/QUSER/QNMAREXECD)of type PJ (Prestart job). Only way to release the locks is when I do an Endjob (*immed) on this job. So, that's what I am doing at the source server in the application now after the controls return without error from the target server. (I get the job attributes of the target server job in a file thru RTVJOBA to an outfile, send it across thru DDM and read this file at source and do an ENDJOB *immed) Now, with this am I ending the prestart job itself (that I till now believed was done thru ENDPJ command and not Endjob) or I am ending my job being serviced by the prestart job? Raising this question b'coz I am not supposed to end any prestart jobs in the system due to overheads involved. Please help !!! Thanks !

  2. #2

    Default Issuing an EndJob for a Prestart Job

    Try to look at ALCOBJ with the CONFLICT(*RQSRLS) parameter. I don't know if it works in your situation but it does when an HTTP server job keeps a lock from an SQL statement. If it does work, you should be able to issue it from the command line and see the result at once. Remember to do a DLCOBJ if needed. Regards Jørn

+ Reply to Thread

Similar Threads

  1. ENDJOB with QCMDEXC
    By K.Forsythe in forum RPG
    Replies: 6
    Last Post: 12-18-2006, 06:34 AM
  2. endjob *immed
    By David Abramowitz in forum System Administration
    Replies: 7
    Last Post: 05-08-2001, 09:59 AM
  3. Detecting ENDJOB
    By Guest.Visitor in forum Programming
    Replies: 11
    Last Post: 04-28-2000, 04:54 PM
  4. SQL Cursor Closing Without Issuing CLOSE
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 10-22-1999, 03:57 AM
  5. ENDJOB ???
    By Guest.Visitor in forum Application Software
    Replies: 5
    Last Post: 10-14-1999, 05:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts