HPlogo Message Catalogs:Programmer's Guide: HP 3000 MPE/iX Computer Systems > Appendix B Catalogs Formatted With MAKECAT

Converting MAKECAT Formatted Catalogs

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

To increase the efficiency of message catalog accessing, you may want to convert your MAKECAT formatted message catalog to a GENCAT formatted catalog. GENCAT is the newer facility for creating formatted message catalogs. It is faster, allows more set numbers, allows you to modify your catalogs easily, and permits catalog rollback. If you decide to perform the conversion you must perform two tasks:

  • Alter the Catalog

  • Change the Intrinsic Access

Altering the Catalog

Changing a MAKECAT formatted file to a GENCAT formatted file is easy; just run the source through the GENCAT program to format it. For details about GENCAT and how it formats source files, refer to Chapter 3 of this manual.

Changing the Intrinsic Access

To access a GENCAT formatted catalog, change all the HPFOPEN calls in the program to the catalog to CATOPEN calls with the correct parameters. GENMESSAGE intrinsic calls must be changed to CATREAD; change FCLOSE to CATCLOSE when closing the catalog. For explanations of the intrinsics, refer to the MPE XL Intrinsics Reference Manual (32650-90028). Also refer to Chapter 3, "Accessing Application Message Catalogs".

Feedback to webmaster