Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Passing parameters or information

&pagelevel(4)&pagelevel

Recommended syntax

Syntax with lower performance

Procedure 1:
/GET-IDOM-LIBRARY-NAME LOGICAL-ID='SYSSPR',/
                   INT-LIB=IDOM-GLB-SYSSPR 
Procedure 1:
/ASSIGN-STREAM SYSINF,/
       TO=*VAR(VAR-NAME=INT-LIB-NAME) 
/GET-IDOM-LIBRARY-NAME LOGICAL-ID='SYSSPR' 
/ASSIGN-STREAM SYSINF,TO=*SAME 
/IDOM-GLB-SYSSPR=INT-LIB-NAME#1.NAME

Procedure 2 for implementing the command
GET-IDOM-LIBRARY-NAME:

/ . . .
/DECLARE-PARAMETER INT-LIB(TYPE=*STRING,/
        TRANSFER-TYPE=*BY-REFERENCE) 
. . . 
/INT-LIB = 'xxx'

Procedure 2 for implementing the command
GET-IDOM-LIBRARY-NAME:

/INT-LIB.NAME='xxx'
/TRANSMIT-BY-STREAM STREAM-NAME=SYSINF,/
         VAR-NAME=INT-LIB,/
         RETURN-VAR=*NONE

If output information is to be returned in variables by a procedure that is called with CALL-PROCEDURE (directly or as an implemented procedure like in the example), then the following parameter declaration should be used:

/DECLARE-PARAMETER <var-name>,(...,TRANSFER-TYPE-*BY-REFERENCE)

This declaration is the best way to exchange information for simple variables (type ANY, STRING, INTEGER or BOOLEAN), in contrast to the use of variable streams as shown in the example on the right).