Guardian Programmer's Guide

Table Of Contents
Interfacing With the ERROR Program
Guardian Programmer’s Guide 421922-014
20 - 12
Using the ERROR Process: An Example
!------------------------------------------------------------
! Main procedure initializes the home terminal and calls the
! PRINT^ERROR procedure.
!------------------------------------------------------------
PROC FILE^USER MAIN;
BEGIN
! Read Startup message:
CALL INIT;
.
.
! If file-system error:
CALL PRINT^ERROR(FNUM);
END;