Browse Prior Art Database

Program for Converting Text Files to Message Files

IP.com Disclosure Number: IPCOM000115392D
Original Publication Date: 1995-Apr-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 2 page(s) / 84K

Publishing Venue

IBM

Related People

Weaver, JN: AUTHOR

Abstract

Disclosed is a Message Procedure utility (MSGPROC) for converting a message text file containing information and error messages from the Hardware Failure Simulator (HFS) into a message file which the HFS can read and use in a DOS environment. This program converts the text file with a ".TXT" extension into a file with a ".MSG" extension. This program also performs an automatic reconciliation of the "#define" names and/or message numbers in an include file.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Program for Converting Text Files to Message Files

      Disclosed is a Message Procedure utility (MSGPROC) for
converting a message text file containing information and error
messages from the Hardware Failure Simulator (HFS) into a message
file which the HFS can read and use in a DOS environment.  This
program converts the text file with a ".TXT" extension into a file
with a ".MSG" extension.  This program also performs an automatic
reconciliation of the "#define" names and/or message numbers in an
include file.

      The HFS contains a list of information and error messages
displayed, for example, on the DOS Command Line or inside a red
"pop-up" window appearing on the display of the host system.  These
messages are contained inside a text file named "HFSBUG00.TXT."
Additionally, the HFS supports a set of system-specific modules
dependant on the target system.  Each of these modules uses a
system-specific set of messages contained in a text file with the
same name as the module name, but with a ".TXT" extension.

      The MSGPROC program converts these input files into a format
which can be read by the HFS, creating a new file with the same name,
but with an ".MSG" extension.  With the selection of optional
parameters, this utility can generate a file with a ".LST" extension,
and replace the existing file with a ".H" extension with a new one.

The following syntax is used in the MSGPROC program:
  MSGPROC ({?|source(.ext)} (destination(.ext))) (/L) (/R) where:
   source   -   The message text file.  The default ext is:
           TXT
  destination - The message file.  The default name is the
                 same as source.  The default ext is MDG.
  /L          - Generate a .LST file only.
  /R          - Replace the .H file if needed.

      The program generates a list file with the same name as the
destination file and an ".LST" extension.  The program also performs
an automatic reconciliation, generating a file with the same name as
the destination file, but with an ".HX" extension.  This file is
compared to the ".H" file, if it exists.  If any of the changes
affect a "# define" statement and/or the message numbers, the program
either replaces the ".H" file, if the "/R" option has been selected,
or otherwise issues a warning message.

For example, a text ("....