Difference: 0LASubrEnvGetParentProc (1 vs. 5)

Revision 52020-05-12 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.ENV GET PARENT PROC

Line: 38 to 38
 
<--/commentPlugin-->

-- JeanNeron - 2012-01-26 \ No newline at end of file

Added:
>
>
META TOPICMOVED by="JeanNeron" date="1589315506" from="Main.0LASubrEnvGetParentProces" to="Main.0LASubrEnvGetParentProc"

Revision 42012-03-30 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"
Changed:
<
<

.ENV GET PARENT PROCES

>
>

.ENV GET PARENT PROC

  This subroutine returns the name and type of the parent process.
Line: 9 to 9
 
      PASS         <parent_type>              FIELD            SHARE? Y
      PASS         <parent_name>              FIELD            SHARE? Y
      PASS         <parent_app>               FIELD            SHARE? Y

Changed:
<
<
GOSUB --- .ENV GET PARENT PROCES
>
>
GOSUB --- .ENV GET PARENT PROC
 
    • Check for errors
Changed:
<
<
IF --- .ENV GET PARENT PROCES NE
>
>
IF --- .ENV GET PARENT PROC NE
 

Description:

Line: 24 to 24
  <parent_app> returns the application id of the parent process (Required). This must be PASSed with Share "Y" to return the value.
Changed:
<
<
If any field you passed is too short to contain the data, --- .ENV GET PARENT PROCES will be set to "Data was truncated".
>
>
If any field you passed is too short to contain the data, --- .ENV GET PARENT PROC will be set to "Data was truncated".
  Notes:

Revision 32012-02-10 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.ENV GET PARENT PROCES

Line: 18 to 18
  This subroutine returns the name and type of the parent process. All parameters are required, if any are missing the subroutine will CANCEL.
Changed:
<
<
<parent_type> will contain the process type of the parent process (Required). This must be PASSed with Share "Y" to return the value.
>
>
<parent_type> returns the process type of the parent process (Required). This must be PASSed with Share "Y" to return the value.
 
Changed:
<
<
<parent_name> will contain the process name 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.
 
Changed:
<
<
<parent_app> will contain the application id 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 PROCES will be set to "Data was truncated".

Revision 22012-01-27 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.ENV GET PARENT PROCES

Line: 26 to 26
  If any field you passed is too short to contain the data, --- .ENV GET PARENT PROCES will be set to "Data was truncated".
Changed:
<
<
Note: 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.
>
>
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.

Revision 12012-01-26 - JeanNeron

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.ENV GET PARENT PROCES

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 PROCES
      *        Check for errors
      IF       --- .ENV GET PARENT PROCES     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> will contain the process type of the parent process (Required). This must be PASSed with Share "Y" to return the value.

<parent_name> will contain the process name of the parent process (Required). This must be PASSed with Share "Y" to return the value.

<parent_app> will contain 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 PROCES will be set to "Data was truncated".

Note: 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.

Comments:

Read what other users have said about this page or add your own comments.


<--/commentPlugin-->

-- JeanNeron - 2012-01-26

 
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