.)
It is important that the correct routine is called, otherwise the wrong
message or, at best, only an error number will be obtained.
It should be noted that the messages returned using these subroutines will depend upon the operating system in use. The error messages returned by operating systems vary considerably in their clarity and so should not be relied upon as the sole source of information in error reports.
The subroutines are:
where STATUS is a standard Starlink facility status value,EMS_FACER( TOKEN, STATUS )
where IOSTAT is a Fortran I/O status code, andEMS_FIOER( TOKEN, IOSTAT )
where SYSTAT is a status value returned from a system routine.EMS_SYSER( TOKEN, SYSTAT )
In each case the message associated with the given error code is assigned to the specified message token. On completion, each of these subroutines returns its second argument unchanged.
EMS Error Message Service