I don't know to rewrite the stats for member's stats.below are portions of rexx code & ISPF library services lmmstats code
how can i keep member's stats and rewrite it to pds directory?
do any one give me some suggestions ?
thanks!
dsname = "ANQ.ETNE.PDS'
'ALLOC F(AREAD) DS('dsname') SHR REUSE
DSORG(PS) LRECL(256) RECFM(F B)'
'EXECIO * DISKR AREAD ( FINIS STEM MSTATS.'
'FREE F(AREAD)'
"EXECIO * DISKR JobTable (FINIS STEM JobName."
Job_count = 0
Do i = 1 to JobName.0
address ispexec
"lmmfind dataid("did") member("JobName.i") stats(yes)"
if rc = 0 then /* yes,found the job */
Do
JobName_out = LEFT(STRIP(JobName.i),8) /* default pad is blank */
zlchtime = zlmtime || ":" || zlmsec
out_rec = JobName_out zlcnorc zlc4date zlm4date zlchtime,
zluser zlinorc zlvers zlmod
/* SAY "OUT_REC IS :" OUT_REC */
push out_rec
address tso
"EXECIO 1 DISKW JobStats"
job_count = job_count + 1
End