MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Capture Process id in REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
to_agrawals
Beginner


Joined: 12 Dec 2002
Posts: 26
Topics: 16

PostPosted: Thu Jul 17, 2003 2:31 am    Post subject: Capture Process id in REXX Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group