to_agrawals Beginner

Joined: 12 Dec 2002 Posts: 26 Topics: 16
|
Posted: Thu Jul 17, 2003 2:31 am Post subject: Capture Process id in REXX |
|
|
Hi,
This is about executing a command in REXX and getting it's process id. The command is:
ADDRESS ISPEXEC "SELECT PGM(GX2195) PARM(/X" || PRMDATA || ")"
This executes a PL/I code GX2195.Considering this as a process, can I get the process ID for this process? This is some info I got :
GrxGetPID([option])
returns the ID of the process identified by "option". "option" may be either "C" (current) or "P" (parent). if "option" is omitted, defaults to "C" .
I tried this after the ADDRESS ISPEXEC command but it said "routine not found".
Another command that i tried was GETPID as shown:
GETPID
Returns the process ID of the program that launched your REXX script.
id = GETPID()
Args: None.
Returns:The process ID number.
Notes: Some interpreters do not implement this function. This function is very dependent upon the operating system of your computer. A process ID can be any number having any meaning.
This too failed.
The OS I am using is Z/OS Ver 01.02.00. Can someone help.
Thanks
Saurabh |
|