Trusted Clause for the Add Program Command

The trusted clause determines if the program is safe (trusted) to execute as part of a where clause of a query, expand, or other command.

When a program is included in a where clause, the system checks the trusted flag to determine if it is safe to run the program. If not, an error occurs or a warning is posted, depending on the setting of the MX_CHECK_TRUSTED_PROGRAM environment variable.

This clause sets the trusted flag on the program to true or false. Use the following syntax to set the trusted flag:

add|modify program PROG_NAME [!]trusted;

trusted sets the flag to TRUE and !trusted (or nottrusted) sets the flag to FALSE.

Note: The trusted clause must be used only for base programs.