Jump to content

SpFilenameFromPid

From EDM2
Revision as of 19:16, 26 February 2017 by Ak120 (talk | contribs) (Ak120 moved page OS2 API:SPUTILS:spFilenameFromPid to SpFilenameFromPid)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Retrieves the full-qualified file name of the module running in the process with the specified process id.

Syntax: filename = spFilenameFromPid ( pid )

Parameter: pid – process id of the process which module filename is to be retrieved.

Returns: filename of process module.

Example Code: (part of spGetPidList example code)

/* ps.cmd (spUtils Example Code) */
[...]
SAY RIGHT(p.i,5,' ') || ' ' || spFilenameFromPid(p.i)
[...]