CSRLOC (Cursor Location) Keyword for Display Files--Example

Figure 132 shows how to specify the CSRLOC keyword.

Figure 132. Specifying the CSRLOC Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A          R RECORD1                   CSRLOC(LINNBR POSNBR)
00020A            TITLE         40   B  1  2
00030A            PAGE           5Y OB  1 60
00040A            TEXT        1760   B  2  1
00050A            LINNBR         3  OH
00060A            POSNBR         3  OH
     A

The application program sets the contents of LINNBR and POSNBR before issuing an output operation to RECORD1. When the record is displayed, the fields Title, Page, and Text appear on the display. The cursor could be at some location in a field of RECORD1 where the work station user is to make changes.