Creating a New Source File [ Message Catalogs:Programmer's Guide ] MPE/iX 5.0 Documentation
Message Catalogs:Programmer's Guide
Creating a New Source File
Figure 4.3 shows how the new source file is created by merging the old
source with the maintenance file. A collision file may be created at
this time. Collision files are described in the next section.
Figure 4.3. Creating a New Source
The dialog listed below is an example of merging source and maintenance
files. Note that the method of merging you specify depends on the type
of maintenance file you created. To use GENCAT to modify your source
catalog, enter:
:RUN GENCAT.PUB.SYS
HP32414A.02.01 GENCAT/3000 (C) HEWLETT-PACKARD., 1983
ENTER INDEX OF DESIRED FUNCTION
0. EXT.
1. HELP.
2. MODIFY SOURCE CATALOG.
3. FORMAT SOURCE INTO FORMATTED CATALOG.
4. EXPAND FORMATTED CATALOG INTO SOURCE.
>>2
ENTER NAME OF CATALOG SOURCE FILE TO BE MODIFIED
>>SOURCE
ENTER NAME OF MAINTENANCE FILE
>>MAINT
ENTER INDEX OF MERGE TYPE
0. DO NOT MERGE.
1. HELP.
2. BY LINE NUMBER.
3. BY SET/MESSAGE NUMBER.
>>2 or >>3
Entering an "0" or [[Return]] aborts the maintenance function and returns
to the main menu.
You have the option of saving all the modifications resulting from the
merge in a collision file.
SAVE COLLISIONS? ENTER "YES" OR "NO"
>>YES
ENTER NAME OF COLLISION FILE
>>COLISION
If the name of an existing file is entered, the prompt is repeated. A
[[Return]] continues the merging without saving the collisions.
GENCAT merges the source and maintenance files into a temporary file, and
will prompt for the name of a permanent file:
ENTER NAME OF NEW SOURCE CATALOG FILE
>>NEWSOURC
This prompt is repeated until a unique file name or a [[Return]] is
entered. The temporary file is copied to the new permanent file. If a
[[Return]] is entered, the merging is aborted.
After a new source is created, it must be formatted before it can be
accessed. Formatting a source catalog is discussed in Chapter 3.
MPE/iX 5.0 Documentation