+ or –

Syntax

──┬─ + ─┬─┬───────────┬────────────────────────────────────────────────┤
  └─ - ─┘ └─<integer>─┘

Explanation

The + and – commands invoke page mode and allow movement through the work file while in page mode. When + or – initiates page mode, a shift is made <integer> records forward (+) or backward (–) from the first record in the file and a page is then displayed. After page mode has been initiated, + and – allow the file to be scrolled by increments of an indicated number of records. The +<integer> construct causes CANDE to display a page <integer> records forward from the first record on the current page. The –<integer> construct causes CANDE to display a page <integer> records backward from the first record on the currently displayed page.

A + or – command can be used to resume page mode after it has been interrupted by a nonpage-invoking command; it provides a page relative to the current page at the time page mode was interrupted. A +5 would provide a page five lines forward from the page that was displayed just before page mode was interrupted.

The default value for <integer> is 1.

A + or – command automatically puts the user into page mode. (Refer to Page Mode Operations.)

Next+ appears at the top of the page if +<integer> was just entered. Next– appears at the top of the page if –<integer> was just entered.

Examples

The following example displays the page beginning five records from the top of the currently displayed page:

+5

The following example displays the page beginning 49 records back from the currently displayed page:

-49