Compiler Commands

Compiler commands are unique parameters that enable additional functionality when compiling PSL source code. During compile-time, these commands are flagged and verified by the PSL compiler.

These commands (parameters) are preceded by a # symbol. The following commands cause the compiler to perform the specified action.

Command

Description

#ACCEPT

Suppresses warnings generated by the next line of PSL source code.

#BREAK

Breaks on the specified line within the compile or on a designated entry reference (i.e., label in a procedure which is called from within the procedure or from another procedure).

#BYPASS

Inserts the lines of code listed between the #BYPASS and #ENDBYPASS commands directly into the compiled program, without parsing or interpreting them.

#ELSE

Evaluates the condition that follows the statement. This command is used in conjunction with the #IF and #ENDIF commands.

#END

Identifies the end of a while loop or an if/else loop.

#ENDBYPASS

Identifies the end of a #BYPASS code block.

#ENDIF

Identifies the end of an IF condition. This command is used in conjunction with the #IF and #ELSE commands.

#IF

Evaluates the condition that follows the statement. This command is used in conjunction with the #ELSE and #ENDIF commands.

#INFO

Controls the groups of informational messages that is  displayed by the compiler.

#OPTIMIZE

Recognizes short-lived type Record objects, and if possible, does not physically allocate or manage object storage.

#OPTION

Controls the recognition of PSL constructs and the generation of target code.

#WARN

Checks for warnings such as variables that have not been scoped within a subroutine, or dead code).

#WHILE

Evaluates the condition that follows the statement. This command is used in conjunction with the #END command.

#XECUTE

Executes the specified line of M code. It aids in compile time testing and debugging of PSL methods and compiler code.