ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

job's start & end timing

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

  • job's start & end timing

    Hi,

    can anyone please tell me,
    if I'll use SBMJOB to run a prog
    how can I know its actual start & end timing by CL program.

    thanks

  • #2
    Re: job's start & end timing

    parse the job log for the job, perhaps using the job APIs...change the program to log the start & end time while processing...
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: job's start & end timing

      how are you coming on this kishor?
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: job's start & end timing

        As suggested by Tom above ...

        Program MsgPgm:
        Code:
        PGM
        
        SNDPGMMSG MSG('Main job starting')
        CALL PGM(MainPgm)
        SNDPGMMSG MSG('Main job ended)
        
        ENDPGM
        Then SBMJOB CMD(CALL PGM(MsgPgm)) JOBQ(JobqName) JOB(JobName) LOG(4 0 *SECLVL) LOGCLPGM(*YES)

        Check the joblog for the job submitted and it will have the timings on the messages you sent.
        Greg Craill: "Life's hard - Get a helmet !!"

        Comment


        • #5
          Re: job's start & end timing

          If you are not restricted to CL, then you could add a job notify exit point (QIBM_QWT_JOBNOTIFY format NTFY0100) with the output to a DTAQ. Then read the DTAQ.
          Regards

          Kit
          http://www.ecofitonline.com
          DeskfIT - ChangefIT - XrefIT
          ___________________________________
          There are only 3 kinds of people -
          Those that can count and those that can't.

          Comment


          • #6
            Re: job's start & end timing

            So now you have run time, if there is a change in the run time now what? I suggest you use the API http://publib.boulder.ibm.com/infoce...2Fqusrjobi.htm . It has valuable additional information

            Comment

            Working...
            X