Tags:
create new tag
view all tags

.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

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2020-05-12 - JeanNeron
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback