Includes (INCL)
Use Include objects to store blocks of code that you need frequently and that you want to reuse in multiple scripts. Include objects help you ensure that your scripts are consistent. They reduce your design and maintenance efforts. You reuse those blocks of code by entering :INCLUDE or :INC in the scripts of executable objects and selecting an Include object. This inserts the Include object in the script.
Important!
-
Variables in Include Objects
If your Include object includes variables, the variables must be defined and initialized in the object in which the Include is inserted. Otherwise, you cannot pass the variable from the Include to the object.
-
Script Functions in Include Objects
Script functions in the Include object refer to the object in which you have inserted it
-
Nesting Include Objects
You can nest as many Includes within Includes as you need
-
JCL in Include Objects
You can use Job Control Language (JCL) lines if the Include object is inserted in a Job.
See also: