Specifying the Table

File translation table records must be formatted as follows:

Record
Position
 
Entry
1-7 *EQUATE
8-10 Leave these positions blank.
11-12 Enter the hexadecimal value of the character to be translated from on input or to be translated to on output.
13-14 Enter the hexadecimal equivalent of the internal character the RPG IV language works with. It will replace the character in positions 11 and 12 on input and be replaced by the character in positions 11 and 12 on output.
15-18
19-22
23-26
...
77-80
All groups of four beginning with position 15 are used the same way as positions 11 through 14. In the first two positions of a group, enter the hexadecimal value of the character to be replaced. In the last two positions, enter the hexadecimal value of the character that replaces it.

The first blank record position ends the record. If the number of entries exceeds 80 positions, duplicate positions 1 through 10 on the next record and continue as before with the translation pairs in positions 11 through 80. All table records for one file must be kept together.

The records that describe the file translation tables must be preceded by a record with **  (  = blank) in positions 1 through 3 or with **FTRANS. The remaining positions in this record can be used for comments.

      HKeywords++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
       * In this example several files are translated with the
       * same translation table.  FILE2 is not translated.
      H FTRANS
      FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords++++++++++++++++++++++
      FFILE1     IP   F   10        DISK
      FFILE2     IS   F   10        DISK
      FFILE3     IS   F   10        DISK
      FFILE4     IS   F   10        DISK
 **FTRANS
 *EQUATE   FILE1,FILE3,FILE4
 *EQUATE   81C182C283C384C485C586C687C788C889C98ACA8BCB8CCC8DCD8ECE8F
 *EQUATE   91D192D2


[ Top of Page | Previous Page | Next Page | Contents | Index ]