RENAME (Rename) Keyword for Logical Files Only--Examples

The following examples show how to specify the RENAME keyword.

In Figure 69, the QTYDUE field in the physical file (PF1) is renamed QTY in the logical file.

Figure 69. Specifying the RENAME Keyword (Example 1)

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00050A          R RCD1                      PFILE(PF1)
00060A            QTY                       RENAME(QTYDUE)
     A

In Figure 70, the renamed field in the logical file (QTY) is used as a key field.

Figure 70. Specifying the RENAME Keyword (Example 2)

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00050A          R RCD2                      PFILE(PF2)
00060A             :
     A             :
00130A            QTY                       RENAME(QTYDUE)
00140A          K QTY
     A