CALL PERLOG (ERRNR, FCTID, ERRFIL).
This function writes the error message and function identifier to the error file then returns to the function which called it.
open phigs, error handling, set error handling mode, set error handling