View Single Post
Old 30th July 2007, 12:15
george7a's Avatar
george7a george7a is offline
Join Date: May 2004
Location: Nazareth
Posts: 1,491
george7a is on a distinguished road
Baan: IVc, 5.0 b, 5.0 c, LN 6.1 - DB: MS SQL, Oracle - OS: Windows 2000, 2003 & UNIX

In the manuals of Baan IV/V pstat function is not fully documented. There are some macros that can retrieve information from pstats's output. Only the first three macros (ps.state, & ps.parent) are documented. I have luckily found other macros that do work on Baan IV.

Here is the full list:
ps.state(info) | returns PSRUNNING, PSBLOCKING, PSSLEEPING, or PSTERMINATING. | returns the identifier of the process group to which the process belongs.

ps.parent(info) | returns the identifier of the parent process of the process group.

ps.nice(info) | returns the nice value of the process.

ps.cpu.use(info) | returns the number of ticks used by the process.

ps.mwin(info) | returns the object id of the main window of the process.

ps.pri(info) | returns the priority of the process.

ps.size(info) | returns the amount of memory allocated by the process (in bytes).

ps.cwin(info) | returns the object id of the current window of the process
After that, I checked in the LN manuals and the function was fully documented (with all the macros)! I thought I will post the full documentation here so others can see those undocumented macros also in Baan IV & V.

- George
George Abdo
NAZDAQ - Your Documents, Your Way.
Reply With Quote