Oct 1, 2021 #1 gdg1976 Programmer Joined Sep 1, 2021 Messages 14 Location IT hi, anyone know how to see duration of a CL job in AS400 ? thanks bye
Nov 29, 2021 #2 mikrom Programmer Joined Mar 27, 2002 Messages 3,016 Location SK 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 . Upvote 0 Downvote
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 .