1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

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

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 16, 2020.

  1. fdantas

    fdantas Administrator Moderador

    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...

Compartilhe esta Página