FIO_TEST

Test if an FIO status value belongs to a certain class of errors

Description:

See if the value of STATUS corresponds one of the FIO error codes that correspond to the error class given as the first argument.

Invocation

RESULT = FIO_TEST( ERRCLS, STATUS )

Arguments

ERRCLS = CHARACTER ( ) (Given)
The name of the error class
STATUS = INTEGER (Given and Returned)
The global status.

Returned Value

FIO_TEST = LOGICAL
Whether STATUS is in the named class of errors.

Examples:

IF( FIO_TEST( ‘OPEN ERROR’, STATUS ) ) THEN ...
See if the value of STATUS is one of the values associated with the error class ‘OPEN ERROR’.

External Routines Used

CHR: CHR_SIMLR