TIME: 00.00.07
CPU: 26.56
CSA: 1088K
ESSA: 329M
TIME: 01.00.00
CPU: 82.65
CSA: 1088K
ESSA: 329M
TIME: 02.00.00
CPU: 43.31
CSA: 1088K
ESSA: 329M
CPU: 26.56
CSA: 1088K
ESSA: 329M
TIME: 01.00.00
CPU: 82.65
CSA: 1088K
ESSA: 329M
TIME: 02.00.00
CPU: 43.31
CSA: 1088K
ESSA: 329M
But I want to the report is
TIME: CPU: CSA: ECSA:
00.00.07 26.56 1088K 329M
01.00.00 82.65 1088K 329M
02.00.00 43.31 1088K 329M
00.00.07 26.56 1088K 329M
01.00.00 82.65 1088K 329M
02.00.00 43.31 1088K 329M
How should I do ,thanks.
code:
'EXECIO * DISKR FILEIN (FINIS STEM DATA.'
DO I=1 TO DATA.0
IF SUBSTR(DATA.I,1,4) = "-CPU" THEN DO
J = I - 1
SAY " TIME: " SUBSTR(DATA.J,71,8)
END
IF SUBSTR(DATA.I,2,7) = "PRODUCT" THEN DO
SAY " CPU:" SUBSTR(DATA.I,128,5)
END
IF SUBSTR(DATA.I,34,5) = "BELOW" THEN DO
L = I + 5
SAY " CSA:" SUBSTR(DATA.L,39,5)
SAY "ESSA:" SUBSTR(DATA.L,79,4)
END
END
EXIT
DO I=1 TO DATA.0
IF SUBSTR(DATA.I,1,4) = "-CPU" THEN DO
J = I - 1
SAY " TIME: " SUBSTR(DATA.J,71,8)
END
IF SUBSTR(DATA.I,2,7) = "PRODUCT" THEN DO
SAY " CPU:" SUBSTR(DATA.I,128,5)
END
IF SUBSTR(DATA.I,34,5) = "BELOW" THEN DO
L = I + 5
SAY " CSA:" SUBSTR(DATA.L,39,5)
SAY "ESSA:" SUBSTR(DATA.L,79,4)
END
END
EXIT