Include STATEMENT

PURPOSE:  The INCLUDE statement specifies CS statements which are to be compiled in place in the PM during compilation.  Users can share commonly used statements which saves having to re-code duplicate functions.

SYNTAX

INCLUDE segment_name FROM CS cs_name [IN DBL dbl_name] [WITH \\argument\\]

arguments

is a list of string arguments which are used to replace the arguments in the INCLUDEd segment.  Specify up to 36 arguments in numerical order ($ARG_0 thru $ARG_9, and $ARG_a thru $ARG_z.).

Example

00210  INCLUDE INTEREST FROM CS MONEY_CALC WITH
'RATE','PRINCIPLE','DAYS','INT'

In the CS, RATE will replace any occurrence of $ARG_0 PRINCIPLE will replace $ARG_1, DAYS will replace $ARG_2 and INT will replace $ARG_3.

NOTES:  When the PM is saved, the INCLUDEd statements are added as part of the compiled code.

SEE ALSO:  Code Segments