How to know the number of records accessed by a program in Progress-4GL?

Status
Not open for further replies.
R

rubinho.santos

Guest
I'm trying to know how many records a running program is accessing. I found the VST _TableStat, but it doesn't group the number of records by program.

FOR EACH _TableStat NO-LOCK
WHERE _TableStat._TableStat-Create > 0
OR _TableStat._TableStat-Delete > 0
OR _TableStat._TableStat-Read > 0
OR _TableStat._TableStat-Update > 0,
FIRST _File NO-LOCK
WHERE _File._File-Number = _TableStat._TableStat-Id:

DISPLAY
/*_File._File-Name*/
_TableStat-Create
_TableStat._TableStat-Delete
_TableStat._TableStat-Read
_TableStat._TableStat-Update
WITH SIDE-LABELS 1 COLUMN 1 DOWN.
END.


This code shows me the tables and how many records are being accessed, but I want to know the program wich is accessing the table.

Is there a way to know this? Or is there a table like _TableStat with a PID or something like that?

Ps.: I'm using Progress 10.2B.

Thanks in advance, Rubinho Santos

Continue reading...
 
Status
Not open for further replies.
Top