SYSTEM_CALL Subroutines
A SYSTEM_CALL is a special type of subroutine that is defined in a separate program file called a LIB (library) file with a PROGRAM_NAME entry matching the subroutine name, as shown below:
The compiler generates a call to the subroutine in the library file and automatically includes the library file for compilation. System Calls are resolved automatically at compile time without requiring an INCLUDE instruction to include the System Call source file.
To invoke a System Call, use the SYSTEM_CALL keyword followed by the Program Name defined in the LIB file, in single quotes and any calling parameters, as shown below: