> With the usual provisos (don't use in production, don't rely on it > being available after z/OS upgrade) here is a module which will make > the CPU time available in the program which calls it (or wherever > the storage happens to be defined). > > At the "front" of a program, > > CALL "BBPFTC1" USING ADDRESS OF a-doubleword-binary-defined-in-linkage > > Then forget about the sub-program, no longer needed. You could, I > suppose, even CANCEL it if you've loaded it dynamically. > > When you need the CPU time, just use the field from Linkage. > Typically, save it before a suspect block of code. Save it somewhere > else after the block. Compare. To get the time "big enough", "divide > by 4096" to get it to miliseconds.
ASCBEJST is in timer units. Dividing it by 4096 yields microseconds (not milliseconds). ASCBEJST contains accumulated CPU time for all TCBs and SRBs in the address space. ASCBEJST does not include the CPU time spent in the current dispatch. Jim Mulder z/OS Diagnosis, Design, Development, Test IBM Corp. Poughkeepsie NY ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN