:INCLUDE

Use the :INCLUDE script statement to call an Include object from a different object. Whenever an object containing this script statement is activated, the script stored in the Include object is inserted.

Many objects require identical processing steps in their scripts. Include objects let you write reusable script blocks so you do not have to repeatedly write the same scripts. For more information, see Includes (JOBI).

Tips:

Syntax

: INC[LUDE] Include object [oldString = newString][,NOFOUND=IGNORE][,EXT_REPORT=OFF]

Parameters

Parameter Description Format / Allowed Values
Include object Name of the Include object to call. Full name of the Include object. You cannot use script variables.
oldString = newString

(Optional) Replace a string in the script of the Include object with a new string.

Note: Replacements are only valid for the current generation, and do not change the Include object itself.

Maximum length: 100 characters.

Script literal
NOFOUND=IGNORE (Optional) No error occurs if the specified Include object is not found. Keyword
EXT_REPORT=OFF (Optional) Omits Include object contents from logging in extended reports, and prints a command line instead. Keyword

Examples

The following statement calls an Include object called MM.FILEASSIGNMENTS:

: INC MM.FILEASSIGNMENTS

The following statement calls the same object and specifies a new name:

: INC MM.FILEASSIGNMENTS "$MM." = "$MMTEST."

The following example calls a user Include. If the object is not found, no error occurs:

: INCLUDE HEADER.WINDOWS.USER.HEAD,NOFOUND=IGNORE

The following example suppresses the logging of the contents of the Include object in the extended reports:

: INC MM.FILEASSIGNMENTS,EXT_REPORT=OFF

See also:

seealso

Reusing Script Components