Natural System Error Messages 0600-0649

#### Search Results

Search

# Natural System Error Messages 0600-0649

#### NAT0600: "END-IF" missing for IF statement in line :1:.

    Text
    "END-IF" missing for IF statement in line ....
    Explanation
    In structured mode, an IF statement block must be terminated with
    a corresponding END-IF statement.
    Example:
      READ ...
       IF ...
          COMPUTE ...
          COMPUTE ...
       END-IF
      DISPLAY
      END-READ
      END
    Action
    Correct error in program.

#### NAT0601: "END-START" missing for AT START OF DATA in line :1:.

    Text
    "END-START" missing for AT START OF DATA in line ....
    Explanation
    In structured mode, an AT START OF DATA statement block
    must be terminated with a corresponding END-START statement.
    Example:
      READ ...
        AT START OF DATA
           MOVE ...
           DISPLAY ...
        END-START
      DISPLAY ...
      END-READ
      END
    Action
    Correct error in program.

#### NAT0602: "END-ENDDATA" missing for AT END OF DATA in line :1:.

    Text
    "END-ENDDATA" missing for AT END OF DATA in line ....
    Explanation
    In structured mode, an AT END OF DATA statement block must be
    terminated with a corresponding END-ENDDATA statement.
    Example:
      READ ...
        AT END OF DATA
           COMPUTE ...
           DISPLAY ...
        END-ENDDATA
      DISPLAY ...
      END-READ
      END
    Action
    Correct error in program.

#### NAT0603: "END-BREAK" missing for AT BREAK statement in line :1:.

    Text
    "END-BREAK" missing for AT BREAK statement in line ....
    Explanation
    In structured mode, an AT BREAK statement block must
    be terminated by a corresponding END-BREAK statement.
    Example:
      READ ...
        AT BREAK ...
           DISPLAY ...
        END-BREAK
      DISPLAY
      END-READ
      END
    Action
    Correct error in program.

#### NAT0604: "END-TOPPAGE" missing for AT TOP OF PAGE in line :1:.

    Text
    "END-TOPPAGE" missing for AT TOP OF PAGE in line ....
    Explanation
    In structured mode, an AT TOP OF PAGE statement block must
    be terminated by a corresponding END-TOPPAGE statement.
    Example:
      READ ...
      DISPLAY ...
       AT TOP OF PAGE
          WRITE ...
       END-TOPPAGE
      DISPLAY ...
      END-READ
      END
    Action
    Correct error in program.

#### NAT0605: "END-ENDPAGE" missing for AT END OF PAGE in line :1:.

    Text
    "END-ENDPAGE" missing for AT END OF PAGE in line ....
    Explanation
    In structured mode, an AT END OF PAGE statement block must
    be terminated by a corresponding END-ENDPAGE statement.
    Example:
      READ ...
       AT END OF PAGE
         DISPLAY ...
         WRITE TRAILER ...
       END-ENDPAGE
      DISPLAY ...
      END-READ
      END
    Action
    Correct error in program.

#### NAT0606: "END-BEFORE" missing for BEFORE BREAK in line :1:.

    Text
    "END-BEFORE" missing for BEFORE BREAK in line ....
    Explanation
    In structured mode, a BEFORE BREAK PROCESSING statement block
    must be terminated by a corresponding END-BEFORE statement.
    Action
    Correct error in program.

#### NAT0607: "END-NOREC" missing for IF NO RECORDS FOUND.

    Text
    "END-NOREC" missing for IF NO RECORDS FOUND.
    Explanation
    In structured mode, an IF NO RECORDS FOUND clause must
    be terminated with a corresponding END-NOREC statement.
    Example:
      FIND ...
       IF NO RECORDS FOUND
          DISPLAY ...
       END-NOREC
      DISPLAY
      END-FIND
    Action
    Correct error in program.

#### NAT0608: "END-ENDFILE" missing for AT END OF FILE in line :1:.

    Text
    "END-ENDFILE" missing for AT END OF FILE in line ....
    Explanation
    In structured mode, an AT END OF FILE statement block must
    be terminated by a corresponding END-ENDFILE statement.
    Example:
      READ WORK FILE
       AT END OF FILE
          COMPUTE ...
          DISPLAY ...
       END-ENDFILE
      DISPLAY ...
      END
    Action
    Correct error in program.

#### NAT0609: "END-ERROR" missing for ON ERROR statement in line :1:.

    Text
    "END-ERROR" missing for ON ERROR statement in line ....
    Explanation
    In structured mode, an ON ERROR statement block must
    be terminated by a corresponding END-ERROR statement.
    Example:
      FIND ...
      UPDATE ...
        ON ERROR
           RETRY
        END-ERROR
      END TRANSACTION
      END-FIND
      END
    Action
    Correct error in program.

#### NAT0610: This statement is not permitted in reporting mode.

    Text
    This statement is not permitted in reporting mode.
    Explanation
    An attempt was made to issue a statement which is valid
    in structured mode only.
    Action
    Make sure you are working in the correct programming mode.

#### NAT0611: Loop/condition not properly closed.

    Text
    Loop/condition not properly closed.
    Explanation
    An active loop or condition was not properly closed.
    For example, in structured mode, a FIND statement was
    issued without a corresponding END-FIND statement.
    Action
    Check program and correct error.

#### NAT0612: Specified close loop only permitted in structured mode.

    Text
    Specified close loop only permitted in structured mode.
    Action
    Check programming mode, program, and correct error.

#### NAT0613: END-FIND/END-SELECT missing for FIND/SELECT in line :1:.

    Text
    END-FIND/END-SELECT missing for FIND/SELECT in line ....
    Explanation
    In structured mode, a loop initiated with a FIND/SELECT statement
    must be closed with a corresponding END-FIND/END-SELECT statement.
    Examples:
      FIND ...                 *        SELECT ...
        UPDATE                 *          DISPLAY ...
        END TRANSACTION        *        END-SELECT
      END-FIND                 *
    Action
    Supply END-FIND/END-SELECT to close the FIND/SELECT loop.

#### NAT0614: END-READ missing for READ in line :1:.

    Text
    END-READ missing for READ in line ....
    Explanation
    In structured mode, a READ statement must be followed by a
    corresponding END-READ statement.
    Example:
      READ ...
        DISPLAY
        COMPUTE ...
      END-READ
    Action
    Supply END-READ to close the READ loop.

#### NAT0615: END-HISTOGRAM missing for HISTOGRAM in line :1:.

    Text
    END-HISTOGRAM missing for HISTOGRAM in line ....
    Explanation
    In structured mode, a HISTOGRAM statement must be
    followed by a corresponding END-HISTOGRAM statement.
    Example:
      HISTOGRAM ...
        DISPLAY ...
      END-HISTOGRAM
    Action
    Supply END-HISTOGRAM to close the HISTOGRAM loop.

#### NAT0616: END-SORT missing for SORT in line :1:.

    Text
    END-SORT missing for SORT in line ....
    Explanation
    In structured mode, a SORT statement must be followed by
    a corresponding END-SORT statement.
    Example:
      FIND
      ...
      END-ALL
      SORT ...
        DISPLAY ...
      END-SORT
    Action
    Supply END-SORT to close the SORT loop.

#### NAT0617: END-REPEAT missing for REPEAT in line :1:.

    Text
    END-REPEAT missing for REPEAT in line ....
    Explanation
    In structured mode, a REPEAT statement must be followed
    by a corresponding END-REPEAT statement.
    Example:
      REPEAT ...
      ...
      ...
      END-REPEAT
    Action
    Supply END-REPEAT to close the REPEAT loop.

#### NAT0618: END-FOR missing for FOR in line :1:.

    Text
    END-FOR missing for FOR in line ....
    Explanation
    In structured mode, a FOR statement must be followed
    by a corresponding END-FOR statement.
    Example:
      FOR ...
        ...
      END-FOR
    Action
    Supply END-FOR to close the FOR loop.

#### NAT0619: END-WORK missing for READ WORK FILE in line :1:.

    Text
    END-WORK missing for READ WORK FILE in line ....
    Explanation
    In structured mode, a READ WORK FILE statement must
    be followed by a corresponding END-WORK statement.
    Example:
      READ WORK FILE
      ...
      ...
      END-WORK
    Action
    Supply END-WORK to close the READ WORK FILE loop.

#### NAT0620: END-FILE missing for CALL FILE in line :1:.

    Text
    END-FILE missing for CALL FILE in line ....
    Explanation
    In structured mode, a CALL FILE statement must be
    followed by a corresponding END-FILE statement.
    Example:
      CALL FILE  ...
      ...
      ...
      END-FILE
    Action
    Supply END-FILE to close the CALL FILE loop.

#### NAT0621: END-LOOP missing for CALL LOOP in line :1:.

    Text
    END-LOOP missing for CALL LOOP in line ....
    Explanation
    In structured mode, a CALL LOOP statement must be
    followed by a corresponding END-LOOP statement.
    Example:
      CALL LOOP ...
      ...
      ...
      END-LOOP
    Action
    Supply END-LOOP to close the CALL LOOP loop.

#### NAT0622: RETURN/END-SUBROUTINE missing for DEFINE SUBROUTINE in line :1:.

    Text
    RETURN/END-SUBROUTINE missing for DEFINE SUBROUTINE in line ....
    Explanation
    This error occurs under one of the following conditions:
    1) A subroutine was started in a conditional statement block (e.g. IF,
       DECIDE) or in a loop-initiating statement (e.g. REPEAT, FIND),
       but it was not closed at the end of this statement (e.g. END-IF,
       END-REPEAT,).
       Examples: ! IF FIELD = "A" THEN      !   REPEAT                   !
                 !   DEFINE SUBROUTINE ABC  !     DEFINE SUBROUTINE ABC  !
                 !   WRITE "HELLO"          !     WRITE "HELLO"          !
                 ! END-IF                   !   END-REPEAT               !
    2) A subroutine was started, but it was still not closed at program end.
       Example: DEFINE SUBROUTINE ABC
                END
    Action
    Supply RETURN or END-SUBROUTINE to close the subroutine.

#### NAT0623: Variable/field/view must be defined in DEFINE DATA.

    Text
    Variable/field/view must be defined in DEFINE DATA.
    Explanation
    If a DEFINE DATA statement is present, all variables/fields to be
    used must be defined in the DEFINE DATA statement in an LDA, GDA
    or PDA, which are referenced with the keyword USING in the
    DEFINE DATA statement.
    If this error occurs for a DDM and a DEFINE DATA statement is
    present, a view of the DDM (and of any database field referenced
    in the program) must be defined in the DEFINE DATA statement.
    Action
    Check program and correct error.

#### NAT0624: Statement END-... either missing or misplaced.

    Text
    Statement END-... either missing or misplaced.
    Explanation
    Example:     READ ...
                    IF AGE > 65 THEN
                        COMPUTE ...
                    DISPLAY ...
                 END-READ
                 END-IF
                 END
    The statement END-IF must be before the END-READ and after the last
    statement to be executed in the THEN-clause of the IF-statement.
    This could be after the COMPUTE or the DISPLAY statement, depending
    on the actual function the program is to perform.
    Statements with the syntax "xxx ... END-xxx" must be correctly
    paired.
    Action
    Make sure that all statement blocks are terminated with corresponding
    "END-..." statements, and that the "xxx" and "END-xxx" statements are
    correctly paired.

#### NAT0625: END-DECIDE missing for DECIDE statement.

    Text
    END-DECIDE missing for DECIDE statement.
    Explanation
    A statement block initiated with a DECIDE ON or DECIDE FOR statement
    must be terminated with an END-DECIDE statement.
    This error may also occur if an END-DECIDE statement is misplaced.
    Action
    Make sure that each DECIDE statement is correctly paired with a
    corresponding END-DECIDE statement.

#### NAT0626: Statement not supported with :1:.

    Text
    Statement not supported with ....
    Explanation
    The statement cannot be used with the database type you
    are using. For details as to which statements support
    which database types, see the Natural documentation.
    Action
    Check program and correct error.

#### NAT0627: Value range with keyword "TO" not supported for :1:.

    Text
    Value range with keyword "TO" not supported for ....
    Explanation
    The statement option "TO" cannot be used with the database type you
    are using.
    When "TO" is used to specify a value range in a READ or HISTOGRAM
    statement, the end-value check will not be done by Natural, but is
    performed by the database. However, this requires a corresponding
    capability of the accessed database.
    For HISTOGRAM or READ BY DESCRIPTOR
     Option "TO" can only be used if running against Adabas V7 (or above),
     VSAM, DL/I or Db2.
    For READ BY ISN
     Option "TO" can only be used if running against Adabas V86 (or above).
    For details as to which statements support which database types,
    see the Natural documentation.
    Action
    Check program and correct error.

#### NAT0628: Invalid usage of MULTI-FETCH option for :1:.

    Text
    Invalid usage of MULTI-FETCH option for ....
    Explanation
    The MULTI-FETCH option can only be used if the underlying database is
    Adabas.
    The MULTI-FETCH option is not permitted, if a
    - READ or HISTOGRAM statement contains a "DYNAMIC .. SEQUENCE" clause;
    - READ or FIND statement contains an "IN SHARED HOLD" clause.
    For further details, see the Natural documentation.
    Action
    Check program and correct error.

#### NAT0629: Incompatible range combinations in relational expression.

    Text
    Incompatible range combinations in relational expression.
    Explanation
    When two arrays are compared in a relational expression,
    the number of occurrences in each dimension of the one array
    must match the number of occurrences in the corresponding
    dimension of the other array.
    If no corresponding dimension is defined for the other array,
    the dimension is assumed to be 1.
    A variable number of occurrences in one dimension must not
    be compared with a fixed number of occurrences in the
    corresponding dimension of the other array.
    Action
    Correct error in program.

#### NAT0630: Error in RESET INITIAL statement.

    Text
    Error in RESET INITIAL statement.
    Explanation
    See the Natural documentation for information on the correct usage
    of the RESET INITIAL statement.
    Note in particular that a RESET INITIAL of fields resulting from
    a redefinition is not possible, and RESET INITIAL cannot be
    applied to database fields.
    Action
    Check program and correct error.

#### NAT0631: Invalid index specified in arithmetic/ASSIGN statement.

    Text
    Invalid index specified in arithmetic/ASSIGN statement.
    Action
    Check program and correct error.

#### NAT0632: Invalid view structure defined for HISTOGRAM statement.

    Text
    Invalid view structure defined for HISTOGRAM statement.
    Explanation
    When using the HISTOGRAM statement with a view, it must
    be defined with only one variable: the search variable.
    Action
    Check program and correct error.

#### NAT0633: Invalid use of view which contains super-/subdescriptor.

    Text
    Invalid use of view which contains super-/subdescriptor.
    Explanation
    Depending on the Adabas version, a sub- or superdescriptor may be read
    with a HISTOGRAM statement only or with all database access statements.
    However, an UPDATE or STORE statement must not be applied to a sub-
    or superdescriptor.
    Action
    Correct error in program.

#### NAT0634: Access criterion not supported for this type of database.

    Text
    Access criterion not supported for this type of database.
    Explanation
    The DBID of this DDM identifies a non-Adabas database.
    Non-Adabas databases introduce certain restrictions for
    Natural"s database-access statements.
    Action
    See the Natural documentation for restrictions which apply to
    the type of database you wish to access.

#### NAT0635: Incorrect use of "BY VALUE" or "OPTIONAL" in DEFINE DATA.

    Text
    Incorrect use of "BY VALUE" or "OPTIONAL" in DEFINE DATA.
    Explanation
    The keyword "BY VALUE" or "OPTIONAL" may only be supplied for fields
    defined in a DEFINE DATA PARAMETER clause.
    However, this is not permitted for REDEFINE fields or groups.
    Action
    Correct error in program.

#### NAT0636: Incorrect usage of STARTING WITH ISN clause for :1:.

    Text
    Incorrect usage of STARTING WITH ISN clause for ....
    Explanation
    A STARTING WITH ISN clause can only be used for
    - Adabas access : FIND
                      READ logical
                      READ physical
    - VSAM access   : READ physical
    Action
    Correct error in program.

#### NAT0637: Invalid USING clause specified.

    Text
    Invalid USING clause specified.
    Explanation
    Invalid USING clause specified in OPEN CONVERSATION statement.
    Possible reasons for this error are:
    1. Keyword USING missing.
    2. Incorrect object name specified. Either a constant or a
       variable of type alpha and length <= 8 is expected.
    Action
    Correct error in program.

#### NAT0638: Invalid clause in CLOSE CONVERSATION statement.

    Text
    Invalid clause in CLOSE CONVERSATION statement.
    Explanation
    The operand in a CLOSE CONVERSATION statement is incorrect.
    Please specify keyword ALL or *CONVID or a variable of type (I4).
    Action
    Correct error in program.

#### NAT0639: Referenced GDA cannot be converted to the current version.

    Text
    Referenced GDA cannot be converted to the current version.
    Explanation
    When a GDA cataloged with Version 2.2, 2.3 or 3.1 is referenced in a
    DEFINE DATA GLOBAL statement, the GDA contents will automatically be
    converted to the layout required by the current Natural version.
    However, for internal reasons, this does not work for this GDA object.
    Action
    Recatalog the GDA.

#### NAT0640: Label reference not permitted for this statement type.

    Text
    Label reference not permitted for this statement type.
    Explanation
    Labels may be used to reference the following statements only:
    FIND, READ, GET, HISTOGRAM, SORT, FOR, CALL FILE, CALL LOOP,
    STORE and REPEAT.
    Action
    Check program and correct error.

#### NAT0641: Invalid DEFINE PRINTER statement syntax.

    Text
    Invalid DEFINE PRINTER statement syntax.
    Explanation
    The correct syntax is:
       DEFINE PRINTER (logical-name = n) OUTPUT operand1
       where "logical-name" is the name allocated to printer,
       "n" is the printer number in range from 1 to 31,
       "operand1" is the destination within the online spooling system.
    Additional reports can be assigned for default with the following names:
       SOURCE   - Output in the Natural source area.
       CONNECT  - Output into a Con-nect folder.
       DUMMY    - Output to be deleted.
       HARDCOPY - Output to the current hardcopy device.
    Action
    Check program and correct error.

#### NAT0642: Invalid definition of OUTPUT variable/constant.

    Text
    Invalid definition of OUTPUT variable/constant.
    Explanation
    This field must be specified with format A8.
    Action
    Check program and correct error.

#### NAT0643: END-PROCESS missing for PROCESS PAGE MODAL in line :1:.

    Text
    END-PROCESS missing for PROCESS PAGE MODAL in line ....
    Explanation
    This error occurs under one of the following conditions:
    1) A PROCESS PAGE MODAL statement was started in a conditional
       statement block (e.g. IF, DECIDE) or in a loop-initiating
       statement (e.g. REPEAT, FIND), but it has not been closed yet at
       the end of this statement (e.g. END-IF or END-REPEAT). Examples:
         IF FIELD = "A" THEN         *        REPEAT
           PROCESS PAGE MODAL        *          PROCESS PAGE MODAL
             MOVE #A TO #B           *            MOVE #A TO #B
         END-IF                      *        END-REPEAT
    2) A PROCESS PAGE MODAL statement was started, but not yet
       closed at program end.
       Example:        PROCESS PAGE MODAL
                       END
    Action
    Supply END-PROCESS to close the PROCESS PAGE MODAL block.

#### NAT0644: Maximum number of parameters exceeded.

    Text
    Maximum number of parameters exceeded.
    Explanation
    The number of parameters permitted in a CALLNAT or PERFORM statement
    is limited to 4096.
    Action
    Reduce the number of parameters.

#### NAT0645: END-PARSE missing for PARSE JSON/XML in line :1:.

    Text
    END-PARSE missing for PARSE JSON/XML in line ....
    Explanation
    In structured mode, a PARSE JSON/XML statement must be followed
    by a corresponding END-PARSE statement.
    Example:
      PARSE XML #DOC
        DISPLAY ..
      END-PARSE
    Action
    Supply keyword END-PARSE to close the PARSE JSON/XML loop.

#### NAT0646: :1: missing for :2: in line :3:.

    Text
    ... missing for ... in line ....
    Explanation
    In the case of flexible SQL syntax, the characters ">>" are not
    recognized for the matching "<<" characters.
    Probably a Natural comment sign "/*" is contained in the flexible SQL
    string between the characters "<<" and ">>".
    Action
    Check the flexible SQL syntax for the characters ">>".

#### NAT0648: Parameter :1: inconsistently specified. Reason code :2:.

    Text
    Parameter ... inconsistently specified. Reason code ....
    Explanation
    The parameter supplied in a CALLNAT statement or a function call is not
    compatible with the corresponding parameter definition in the
    subprogram or function.
    Reason codes:
    04 : The CALLNAT or function call parameter is specified as an empty
         parameter ("nX"), but the parameter definition in the subprogram
         or function is not "OPTIONAL".
    08 : A mandatory parameter in the subprogram or function definition is
         missing in the CALLNAT statement or function call.
    12 : Parameters do not match in format.
    16 : Parameters do not match in length.
    20 : Parameters do not match in array definitions.
    Action
    Supply compatible parameter specifications.

#### NAT0649: Database type :1: is not supported.

    Text
    Database type ... is not supported.
    Explanation
    The database type is not supported in the current Natural version.
    Action
    Use another database type.