.ENV GET PARENT PROC
This subroutine returns the name and type of the parent process.
Usage:
PASS <parent_type> FIELD SHARE? Y
PASS <parent_name> FIELD SHARE? Y
PASS <parent_app> FIELD SHARE? Y
GOSUB --- .ENV GET PARENT PROC
* Check for errors
IF --- .ENV GET PARENT PROC NE
Description:
This subroutine returns the name and type of the parent process. All parameters are required, if any are missing the subroutine will CANCEL.
<parent_type> returns the process type of the parent process (Required). This must be PASSed with Share "Y" to return the value.
<parent_name> returns the process name of the parent process (Required). This must be PASSed with Share "Y" to return the value.
<parent_app> returns the application id of the parent process (Required). This must be PASSed with Share "Y" to return the value.
If any field you passed is too short to contain the data, --- .ENV GET PARENT PROC will be set to "Data was truncated".
Notes:
- If you invoke this process via GOSUB, then the parent information will refer to the parent of the current process, since ILF code is compiled into the current process. If you invoke this process via SUBR, then the parent information will refer to the process that invoked the SUBR, since a SUBR invocation creates a new child process.
- You cannot use this in a File Level Event Point, it will return blanks for all parameters.
Comments:
Read what other users have said about this page or add your own comments.
--
JeanNeron - 2012-01-26