You should be getting something like 6527, assuming that all of the CPU use is 
in the same task.  65 would be .65 seconds.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Assembler List <[email protected]> on behalf 
of Brian Westerman <[email protected]>
Sent: Saturday, September 21, 2019 6:26 AM
To: [email protected]
Subject: Converting TIMEUSED macro output to printable time used

I know I'm doing something wrong, but I can't get the output from TIMEUSED to 
give me a valid time used

In the program I have

   TIMEUSED STORADR=DBLWD1
   LM R0,R1,DBLWD1
   SRDL R0,12
   D       R0,K10000
   CVD   R1,DBLWD2
   STRING (DBLWD2+4,P,L),INTO=CPUTIME


K10000   DC    F'10000'

What I end up with in CPUTIME is (in this case) 324 for a job that ran all of 3 
seconds (wall clock time) when my job stats show:
CPU:     0 HR  01 MIN  05.27 SEC    SRB:     0 HR  00 MIN  06.53 SEC

I should be  getting something like 65 (unless SRB is included when I would 
expect 71)

I am obviously doing something wrong.  I tried it using load grande and got the 
same results, so I went back to LM.

any help at all would be appreciated.

Brian

Reply via email to