INDICATORS Phrase

Specifies which indicators are to be used when a data record is written. Indicators can be used to pass information about the data record and how it was entered into the program.

For detailed information on the INDICATORS phrase, refer to Using Indicators with Transaction Files in the IBM® Rational® Development Studio for i: ILE COBOL Programmer's Guide.

Identifier-8 must be either an elementary Boolean data item specified without the OCCURS clause or a group item that has elementary Boolean data items subordinate to it.

Figure 1 shows an example of rolling. An initial screen format, FMT1 is written on the work station screen. The program processes this screen format and is now ready to write the next screen format, FMT2, to the workstation screen. Part of FMT1 is rolled down 2 lines before FMT2 is written to the workstation screen.

Execution of the following WRITE statement causes part of FMT1 to be rolled down 2 lines, and FMT2 to be written to the workstation screen:
   WRITE SCREENREC FORMAT "FMT2"
    AFTER ROLLING LINES 14 THROUGH 20
    DOWN 2 LINES
When this WRITE statement is executed, the following steps occur:
  1. The contents of lines 14 through 20 are rolled down 2 lines.
    1. The contents of lines 14 through 18 now appear on lines 16 through 20.
    2. The contents of lines 14 and 15 are vacated and cleared.
    3. The contents of lines 19 and 20 are rolled outside the window and disappear.
  2. After the rolling operation takes place, FMT2 is written to the workstation screen.
    1. Part of FMT2 is written to the area vacated by the roll operation.
    2. Part of FMT2 is written over the data left from FMT1.
  3. When the contents of the workstation screen are returned to the program by a READ statement, only the input capable fields of FMT2 are returned.
Figure 1. Example of ROLLING Operation
This figure illustrates the results of a ROLLING Operation