Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

as400 job cl time

Status
Not open for further replies.

gdg1976

Programmer
Sep 1, 2021
14
IT
hi,

anyone know how to see duration of a CL job in AS400 ?

thanks
bye
 
Hi gdg1976,

If you compile your CL-program with these options:
Code:
CRTCLPGM PGM(YOURLIB/YOURCLPGM)               
         SRCFILE(YOURSRC/QCLSRC)              
         OPTION(*SOURCE *SRCDBG) LOG(*YES)

and then if you submit the job with this command:
Code:
SBMJOB CMD(CALL PGM(YOURLIB/YOURCLPGM))
       LOG(4 0 *MSG)

then at end of job, you will get a spoolfile QPJOBLOG which informs you step-by-step about every command in the CL-program.

At the end of this spoolfile there is message about the duration of the job - like this:
Code:
Message . . . . :   Job 908195/USER/JOBNAME ended on 20/11/21 at 08:28:51;
0,259 seconds used; end code 0 .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top