HPlogo MPE XL Native Language Programmer's Guide: 900 Series HP 3000 Computer Systems > Appendix D Converting 7-Bit to 8-Bit Data

I7DB8CNV Utility

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

I7DB8CNV converts the character data in an IMAGE database from any Hewlett-Packard 7-bit national substitution set to ROMAN8. The program is a special version of the DBLOAD.PUB.SYS program, and the conversion is done as part of a database load. The procedure for running I7DB8CNV is:

  1. Enter:

    RUN DBUNLOAD.PUB.SYS
    

    This unloads the database to tape.

  2. Enter:

    RUN DBUTIL.PUB.SYS,ERASE
    

    This erases the database data.

  3. Enter:

    RUN I7DB8CNV
    

    This converts the data and reloads it into the database.

I7DB8CNV requests the following:

  1. The 7-bit national substitution set where the conversion is to be made.

  2. The database name.

  3. The utility prompts the user: Convert all data fields of type X or U?. A YES or Return response converts all data fields of type U or X. A NO response prompts the user in each data set for each field of type U or X.

  • The single field in an automatic data set is not proposed for conversion. Whether or not its values are converted depends on the response to the item(s) it is linked to for detail data set(s). At the end of each data set, the user is asked to confirm that the correct fields to be converted from that data set have been selected. Again, a Return is a YES answer; an N allows the user to change the data fields in the data set to be converted.

I7DB8CNV then loads the database from tape. As each record is read, those fields that were selected have their data converted according to the algorithm for the 7-bit national substitution set selected at the beginning of the program.

I7DB8CNV does not allow 8-bit data (bytes with the high-order bit set) in the data fields it is trying to convert. The utility does not abort, but the field in question is not converted, and a warning is issued:

8-bit data encountered in item [itemname in DS data set]

If the program should abort for any reason during the conversion, the user must log on again to clear the temporary files used during the conversion process before running the program again.

Title not available shows the dialog from a sample run of the I7DB8CNV program.

Figure D-2 I7DB8CNV Dialog



RUN I7DB8CNV.PUB.SYS



HP European 7-bit character sets are:



   1. SVENSK/SUOMI

   2. DANSK/NORSK

   3. FRANCAIS

   4. FRANCAIS M

   5. DEUTSCH

   6. UK

   7. ESPANOL

   8. ESPANOL M

   9. ITALIANO



From which character set should conversion be done: 2



WHICH DATA BASE: QWERTZ



Convert all fields of type U,X in all data sets (Y/N)? N



Data Set SET1 fields to be converted:

ITEM1         (Y/N)? Return

ITEM2         (Y/N)? Return

ITEM3         (Y/N)? N

ITEM4         (Y/N)? Return

Is Data Set SET1 correctly defined (Y/N)? Return



Data Set SET2 - Automatic Master



Data Set SET3 fields to be converted:

ITEM1         (Y/N)? Return

ITEM5         (Y/N)? N

ITEM6         (Y/N)? N

Is Data Set SET3 correctly defined (Y/N)? Return



DATA SET 1:   19 ENTRIES

DATA SET 2:    0 ENTRIES

DATA SET 3:   25 ENTRIES

END OF VOLUME 1, 0 READ ERRORS RECOVERED

DATA BASE LOADED



END OF PROGRAM

:
Feedback to webmaster