HP 3000 Manuals

Opening a Catalog [ Message Catalogs:Programmer's Guide ] MPE/iX 5.0 Documentation


Message Catalogs:Programmer's Guide

Opening a Catalog 

The CATOPEN intrinsic opens an application message catalog.  The syntax
for the CATOPEN intrinsic is:
  catindex := CATOPEN (formaldesignator, catstatus);

The catindex is a value returned by the CATREAD intrinsic used to
identify the message catalog being accessed.  This number is not the same
as the file number.  The formaldesignator parameter contains the string
that identifies the catalog file to open; catstatus returns the error
number.  It tells if the call is successful.  An example of opening the
example catalog, FORMAT, would be done as follows:

          var
            Designator : packed array [1..7] of CHAR;
            Catstatus  : packed array [1..2] of SHORTINT;
            Catindex   : INTEGER;

            Designator := 'FORMAT ';
            Catindex := CATOPEN (Designator, Catstatus);

For detailed information about the CATOPEN intrinsic, refer to the MPE XL
Intrinsics Reference Manual (32650-90028).


MPE/iX 5.0 Documentation