Structure of a SIL program

The structure of a SIL™ program should look like:

[use declarations] [inclusions] [variable declarations] [user-defined routines declarations] [actual code]

Use Declarations

To save you some typing, we added at this version packages for standard routines. 

Learn more

For more information and usage, see Packages

Inclusions

Include statements must be the first statements in your program in the absence of the use declarations. These allow you to import libraries of user-defined routines or execute certain fragments of code.

Learn more

For more information see Inclusions.

User-Defined Routines declarations

Here you can define any functions you want to use in the code. These can considerably improve the readability and maintainability of the code.

Learn more

For more information see  User-Defined Routines (UDR).

Actual code

This is the body of the program. Here you will do any necessary modifications to the issue. The body can also contain definition of local variables and calls to the imported or defined routines in the steps above.

See also

 

Peacock