COBOL/400 Language Help


START Statement

Description
The START statement positions an indexed or relative file for subsequent sequential record retrieval. When the START statement is executed, the associated indexed or relative file must be open in either INPUT or I-O mode.
  ->->---START file-name-*-----------------------------------> 1
                       *-KEY-*----*------------------------> 2
                             *-IS-*
 
1 ->--------------------------------------------------------> 3
2 ->----*-EQUAL-*----*---------------------*----------------> 4
       +       *-TO-*                     +
       *- = ------------------------------*
       *-GREATER-*------*-----------------*
       +         *-THAN-*                 +
       *- > ------------------------------*
       *-NOT LESS-*------*----------------*
       +          *-THAN-*                +
       *-NOT < ---------------------------*
       *-GREATER-*------*-OR EQUAL-*----*-*
       +         *-THAN-*          *-TO-* +
       *- >= -----------------------------*
 
3 ->----------------------------------*--------------------->
4 ->----*-EXTERNALLY-DESCRIBED-KEY--*-*
       +                           +
       + *-----------*             +
       + V           +             +
       *-data-name-1-*-------------*
 
  ->----*-------*--NO LOCK---------------------------------->
       *-WITH--*
 
  ->----*----------------------------------*---------------->
       *-FORMAT-*-----*--*-identifier-1-*-*
                *-IS--*  *-literal-1----*
 
  ->-*------------------------------------------*----------->
    *-INVALID-*-----*--imperative-statement-1--*
              *-KEY-*
 
  ->-*--------------------------------------*-*---------*---><-
    *NOT INVALID*---*imperative-statement-2* *END-START*
                *KEY*
 


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