HP 3000 Manuals

List of Messages (0247 - 0335) [ Micro Focus COBOL Error Messages ] MPE/iX 5.0 Documentation


Micro Focus COBOL Error Messages

List of Messages (0247 - 0335) 

0247        Index-name has been declared explicitly 

               *   You have declared an index data item explicitly.  The
                   item is declared implicitly by its appearance in an
                   INDEX phrase, so you have in effect declared the same
                   item twice.

               *   Delete the explicit declaration of the index data
                   item.

0248        ISAM key key-name too long 

               *   A data item that is to be used as an indexed
                   sequential file key is longer than the maximum length
                   allowed for such keys.

               *   Your COBOL System Reference contains a formula which
                   you can use to find out how long indexed sequential
                   file keys can be.  Redefine the key accordingly.

0249        Alternate keys have same reference 

               *   The two alternate keys you have defined for an indexed
                   sequential file overlap.  Alternate keys must be
                   completely distinct from one another.

               *   Redefine the alternate keys so that they do not
                   overlap, or define them as split keys (which are
                   allowed to overlap).

0250        STATUS field data-name missing or illegal 

               *   You have either not declared the data item specified
                   in the FILE STATUS clause of a file control entry, or
                   you have declared it incorrectly.

               *   Refer to the chapter Program Definition in your
                   Language Reference for details of the correct form of
                   the FILE STATUS data item.  Add or revise the
                   definition of the FILE STATUS data item.

0251        CURSOR field data-name missing or illegal 

               *   You have either not declared the data item specified
                   in the CURSOR IS clause in the SPECIAL-NAMES
                   paragraph, or you have declared the item incorrectly.

               *   Refer to the chapter Program Definition in your
                   Language Reference for the correct form of the cursor
                   data item.  Add or revise the declaration of the data
                   item in the CURSOR IS clause.

0252        PASSWORD field data-name missing or illegal 

               *   You have either not declared the data item specified
                   in the PASSWORD clause in a file description entry, or
                   you have declared the item incorrectly.

               *   Refer to the chapter Program Definition in your
                   Language Reference for the correct form of the
                   password data item.  Add or correct the declaration of
                   the data item in the PASSWORD clause.

0253        LABEL RECORD or DATA RECORD record-name missing or illegal 

               *   You have either not declared the record item specified
                   in the LABEL RECORD or DATA RECORD clauses in a file
                   description entry, or you have declared the item
                   incorrectly.

               *   Refer to the chapter Program Definition in your
                   Language Reference for the correct format of the label
                   record and data record item.  Add or correct the
                   declaration of the record item in the LABEL RECORD or
                   DATA RECORD clause.

0254        'VALUE OF' field data-name missing or illegal 

               *   You have either not declared one or more of the data
                   items named in the VALUE OF clause of an FD entry in
                   the File Section, or you have declared such an item
                   incorrectly.

               *   Refer to the chapter Program Definition in your
                   Language Reference for the correct format of such data
                   items.  Add or correct the declaration of the data
                   item(s) in the VALUE OF clause.

0255        User name data-name same as special register 

               *   You have declared a data item with the same name as
                   one of the special registers, which are data items
                   that are automatically declared by your COBOL system.

               *   Refer to the chapter Concepts of the COBOL Language in
                   your Language Reference for a list of the names of
                   these special registers.  Alter the name of the data
                   item in error.

0256        Preceding record has zero length 

               *   You have defined a file record with zero length.  This
                   is probably due to errors in all of the elementary
                   item descriptions in the record definition.

               *   Correct the record description.

0257        KEY data-name missing or already declared 

               *   You have either not declared a data item specified in
                   the KEY phrase of an OCCURS clause, or you have
                   declared it twice.

               *   Declare the data item or remove the extra declaration.

0258        ASSIGN data-name data-name illegal 

               *   You have specified an ASSIGN data-name in a
                   SELECT...ASSIGN clause that is not unitary, that is,
                   the data definition contains an OCCURS clause.

               *   Edit your source code to ensure that the ASSIGN data
                   item does not include an OCCURS clause.

0259        Illegal report-name or bad RD clause 

               *   You have defined a report-name that is either not
                   unique or which does not conform to the rules for
                   user-defined words.  Alternatively, you have specified
                   a clause in an RD entry incorrectly.

               *   Refer to the chapter Program Definition in your
                   Language Reference for the correct syntax of an RD
                   entry.  Correct your program accordingly.

0260        Inconsistent page specification 

               *   The values you have specified in the PAGE LIMIT clause
                   are not consistent; for example, the integer in the
                   LAST DETAIL phrase is smaller than the integer in the
                   FIRST DETAIL phrase.

               *   Refer to the chapter Report Writer in your Language 
                   Reference--Additional Topics for the rules governing
                   the PAGE LIMIT clause.  Correct your program
                   accordingly.

0261        Only allowed in Report Section 

               *   You have tried to specify syntax for a report outside
                   the Report Section of the Data Division.

               *   Refer to the chapter Report Writer in your Language 
                   Reference--Additional Topics to see what syntax is
                   allowed in the Report Section.  Delete the syntax in
                   error or relocate it in the Report Section.

0262        Not a CONTROL for this report 

               *   The data-name in a TYPE CH or TYPE CF clause must
                   appear in the CONTROL clause of the associated RD
                   entry.  You might have misspelled the data-name.

               *   Ensure that the correct data-name appears in both the
                   TYPE CF/CH and CONTROL clauses.

0263        Not allowed when PAGE not specified in RD 

               *   You have either specified a TYPE PH or TYPE PF clause
                   without specifying a PAGE clause in the associated RD
                   entry, or you have specified an absolute line number
                   in the LINE NUMBER clause without specifying a PAGE
                   clause in the associated RD entry.

               *   Add a PAGE clause to the RD entry.

0264        Only one report group with this TYPE allowed per RD 

               *   You have specified a duplicate of one of the TYPE
                   clauses (for example, you have specified two TYPE PF
                   clauses); only one clause of each type is allowed in a
                   particular RD entry.

               *   Delete the duplicate TYPE clause.

0265        Not allowed with this TYPE 

               *   You are using a qualifier in a statement that either
                   does not allow any qualifiers, or that does not allow
                   this particular qualifier.

               *   Refer to the chapter Concepts of the COBOL Language in
                   your Language Reference for details of the qualifiers
                   allowed with this statement.  Revise your program.

0266        No TYPE specified 

               *   All level 01 entries in the Report Section must have a
                   TYPE clause.

               *   Add a TYPE clause.

0267        LINE specification missing or inconsistent 

               *   This message has three possible causes:

                   You have specified a NEXT PAGE clause in a LINE clause
                   other than the first of a report group description
                   entry.

                   The absolute line numbers in the LINE clauses of a
                   report group description entry are not in ascending
                   order.

                   You have not specified a LINE clause in a particular
                   report group description entry.

               *   Depending on the cause of this message, you should:

                   Delete the NEXT PAGE clause from any but the first
                   LINE clause.

                   Rearrange the LINE clauses so that absolute line
                   numbers are in ascending order.

                   Add a LINE clause.

0268        REPORT specified in more than one FD 

               *   You have specified the same report-name in more than
                   one FD.

               *   Delete the duplicate report-name.

0269        Duplicate CONTROL field 

               *   You have specified the same CONTROL field value in
                   more than one RD entry.

               *   Delete the duplicate CONTROL field value.

0270        COLUMN specification overlapping or not left to right 

0271        Only allowed with DETAIL groups 

               *   You can specify a GROUP INDICATE clause only with
                   DETAIL report groups.

               *   Delete the GROUP INDICATE clause.

0272        Only allowed with CONTROL FOOTING groups 

               *   You can specify a SUM clause only in a control footing
                   report group.

               *   Delete the SUM clause.

0273        Non-elementary item has invalid qualifier, or PICTURE missing 

               *   You have specified in a group item a qualifier that
                   can be used only in an elementary item.  Possibly you
                   intended the item to be elementary but omitted the
                   PICTURE clause.

               *   Refer to the chapter Program Definition in your
                   Language Reference for details of the correct syntax.
                   Delete the clause in error, or insert the PICTURE
                   clause.

0274        GROUP INDICATE without COLUMN 

               *   You have specified the GROUP INDICATE clause but no
                   COLUMN clause in the same report group description.

               *   Include the COLUMN qualifier.

0275        NEXT GROUP not allowed with this group TYPE 

               *   You have specified NEXT GROUP in a group with TYPE RF
                   or PH.

               *   Delete the NEXT GROUP clause.

0276        NEXT GROUP NEXT PAGE not allowed with this group TYPE 

               *   You have specified NEXT GROUP or NEXT PAGE in a group
                   with TYPE PF.

               *   Delete the clause.

0277        LINE NEXT PAGE not allowed with this group TYPE 

               *   You can specify the LINE NEXT PAGE clause only with a
                   group of TYPE CH, CF, or DE.

               *   Delete the LINE NEXT PAGE clause.

0278        RESET item is lower CONTROL level than group 

               *   The control group on which a sum is reset must be at
                   either the same level as or a lower level than the
                   sum.

               *   Refer to the chapter Report Writer in your Language 
                   Reference--Additional Topics for the rules governing
                   the resetting of sums.  Revise your code accordingly.

0279        Report line too long 

               *   The syntax you have specified is trying to create a
                   report line which is longer than the maximum allowed.

               *   Ensure that any report lines are not longer than the
                   permitted length.

0280        THRU phrase not allowed with DBCS field 

               *   DBCS is Double Byte Character Set.

               *   Refer to the chapter Micro Focus Extensions for 
                   Double-Byte Character Set Support in your Language 
                   Reference--Additional Topics for the rules governing
                   the use of DBCS. Revise your code accordingly.

0281        Illegal use of DBCS field 

               *   DBCS is Double Byte Character Set.

               *   Refer to the chapter Report Writer in your Language 
                   Reference--Additional Topics for the rules governing
                   the use of DBCS. Revise your code accordingly.

0282        Number of BLL cells incorrect 

               *   You have submitted your program with the CICS
                   directive on, so your COBOL system has calculated the
                   number of BLL cells that should occur after the
                   DFHCOMMAREA definition.  There should be a BLL cell
                   for each 01 level data item in the Linkage Section,
                   plus one further BLL cell.  Additionally, if the 01
                   level Linkage Section data item requires more than
                   4096 bytes, each 4096-byte block of data requires one
                   BLL cell.

               *   Check the number of BLL cells that are required for
                   the Linkage Section in your program as described
                   above, and ensure that you have defined the correct
                   number of BLL cells.

0283        An EXTERNAL file cannot be subject of SAME RECORD AREA clause 

               *   You have specified a file in a SAME RECORD AREA clause
                   in your program that is specified as EXTERNAL in an FD
                   entry.

               *   Delete the EXTERNAL file in error from the SAME RECORD
                   AREA clause in your program.

0284        Not allowed in Report Section 

               *   The syntax you have specified is not allowed in the
                   Report Section.

               *   Delete the syntax from the Report Section.

0285        First LINE NUMBER clause in PAGE FOOTING group is relative 

0286        Not specified in CONTROL clause of RD 

0287        Data record specified for Report file 

0288        SYNC with USAGE IS INDEX 

0289        SYNC at group level 

0290        Index key key-name not alphanumeric 

               *   You have specified a key item that is not
                   alphanumeric, in an index key clause where an
                   alphanumeric key item is expected.

               *   Specify an alphanumeric key item.

0291        Group FILLER 

0292        SIGN different from that at group level 

0295        VALUE clause in File or Linkage Section.  Clause processed as 
            comment 

               *   You have specified a VALUE clause in either the File
                   Section or the Linkage Section where you should not
                   have specified one.

               *   You can delete the VALUE clause, although this has no
                   effect on your program.

0296        BLANK WHEN ZERO with zero suppression 

0297        OCCURS ..  DEPENDING clause without "integer TO".  "1 TO" 
            assumed 

0298        OCCURS at level 01 or 77 

0299        FILLER omitted 

               *   You have omitted the word FILLER.

               *   Add the word FILLER.

0300        LABEL RECORDS clause omitted 

               *   You have omitted the heading LABEL RECORDS.

               *   Add the LABEL RECORDS clause.

0301        Unrecognized verb 

               *   You have either used a verb in the Procedure Division
                   of your program that your COBOL system does not
                   recognize as a valid COBOL verb, or have misspelled a
                   COBOL verb.

               *   Refer to the chapter Program Definition in your
                   Language Reference to see which verbs are permitted in
                   the COBOL language, and ensure that you have spelled
                   them correctly.

                   You might need to set a language-enabling directive if
                   the verb you require is not part of your system's
                   standard COBOL language.

0302        IF....ELSE or scope-delimiter mismatch 

               *   An error exists in your coding of an IF statement in
                   the Procedure Division of your program.  The two
                   halves of one IF statement do not match.

                   Alternatively, you have made an error in coding a
                   construct that uses one of the scope delimiters (for
                   example, END-ADD). There is a mismatch between the
                   number of scope delimiters and the statements whose
                   scope they delimit.

               *   Ensure you do not have more ELSE phrases than IF
                   phrases.

                   Revise your source code.

0303        Operand has wrong data-type 

               *   You have used a data item with the wrong data-type in
                   one of your statements.  For example, you have used a
                   file-name instead of a record-name in a WRITE
                   statement.

               *   Revise the relevant item.

0304        Procedure name name not unique 

               *   Two or more sections in the Procedure Division, or two
                   or more paragraphs in a section, of your program have
                   the same title.

               *   Rename or qualify the sections or paragraphs in error
                   to ensure uniqueness of reference.

0305        Procedure name name same as data-name 

               *   A paragraph in the Procedure Division of your program
                   has the same name as a data item declared in the Data
                   Division.

               *   Change the name of either the paragraph or the
                   relevant data item to ensure uniqueness of reference.

0306        Entry name not unique 

               *   You have used the same entry point-name more than once
                   in your program.  (This might be because the entry
                   point name is the same as the Program-ID.)

               *   Alter the entry-name in error or qualify it.

0307        Wrong combination of data-types 

               *   You are trying to manipulate data items which are not
                   compatible.

               *   Ensure that the data items are of the same type.

0308        Conditional statement not allowed in this context 

               *   You have used a conditional statement (one which
                   specifies that the truth value of a condition is to be
                   determined at run time) in the Procedure Division
                   where an imperative statement is expected.

               *   Replace the statement with one that begins with an
                   imperative verb and is followed by a specification of
                   an unconditional action to be taken at run time.

0309        Malformed subscript 

               *   You have probably specified two subscripts for a
                   one-dimensional table item.

               *   Revise your code to ensure that you do not specify
                   more than one subscript for a one-dimensional table
                   item.

0310        ACCEPT/DISPLAY syntax incorrect 

               *   You have either used invalid syntax with an ACCEPT or
                   DISPLAY statement, or have incorrectly coded that part
                   of your code containing the communications syntax.
                   The most likely cause of this message is a spelling
                   mistake in your code.

               *   Correct the spelling mistake.

0311        Illegal syntax used with I-O verb 

               *   Code following an I/O verb (for example READ or WRITE)
                   violates the rules of COBOL syntax.

               *   Refer to the chapter Program Definition in your
                   Language Reference for details on the usage of the
                   particular verb in your code which has caused this
                   error message.  Revise your code accordingly.

0312        Invalid arithmetic statement 

               *   An arithmetic statement which you have used in the
                   Procedure Division does not conform to the rules of
                   COBOL syntax.  These statements must begin with an
                   arithmetic verb (for example SUBTRACT or DIVIDE),
                   followed by the relevant numeric literals or
                   identifiers which the verb will act upon when the
                   program is executed.  The statement which you have
                   specified is not a valid one.

               *   Refer to the chapter Program Definition in your
                   Language Reference for details of arithmetic
                   statements.  Ensure that the one you want to use
                   conforms to the relevant rules.

0313        Invalid arithmetic expression 

               *   An arithmetic expression which you have used in the
                   Procedure Division is not a valid one.

               *   Refer to the chapter Program Definition in your
                   Language Reference for details of the COBOL syntax for
                   complicated arithmetic tasks.

0314        Illegal key 

               *   The key value in a file operation or in a SEARCH
                   statement is the wrong size.

               *   Check the key definition and correct the key value.

0315        Invalid conditional expression 

               *   A conditional expression which you have specified in
                   the Procedure Division of your program does not
                   conform to the rules of COBOL syntax.  These
                   expressions, an example of which is the statement
                   immediately following an IF, enable one of two
                   following statements to be executed at run time
                   depending on the truth value.

               *   Refer to the chapter Program Definition in your
                   Language Reference for details on the coding of the
                   particular statement which you have used.  Revise your
                   code accordingly.

0316        Too many AFTERs in PERFORM statement 

               *   A PERFORM statement can be followed only by seven
                   AFTER phrases.  Your code exceeds this limit.

               *   Rewrite your code ensuring that no PERFORM statement
                   has more than seven associated AFTER phrases.

0317        Incorrect structure of Procedure Division 

               *   You have made a mistake in the coding of the Procedure
                   Division.  For example, you might have forgotten one
                   of the Section headers.

               *   Ensure that the Procedure Division follows a logical
                   order and that each section in it has its own header.

0318        File must have ACCESS SEQUENTIAL 

               *   The file named in this statement must have sequential
                   access mode.  A file's access mode is derived from its
                   SELECT statement; it is either implied by the file's
                   organization or specified by its ACCESS MODE clause.

               *   Change the access mode of the file to sequential.

0319        Only index-names allowed with this format 

               *   An index-name is required at this point in the
                   operation you are trying.

               *   Edit your source code to ensure that the name you have
                   specified is an index-name.

0320        Too many operands in one statement 

               *   A statement in the Procedure Division of your program
                   contains too many operands or individual operands that
                   are too long.

               *   Reduce the number of operands, or shorten those
                   operands that are too long.

0321        Repeated INDEXED BY phrase 

               *   You have used more than one INDEXED BY phrase on a
                   table.  This is not conformant with your selected
                   flagging dialect.

0322        Cannot reference DEBUG-ITEM outside declaratives 

               *   You have referred to your COBOL system-generated data
                   item DEBUG-ITEM in a procedure that is not in the
                   Declaratives Section of your program's Procedure
                   Division.  References to DEBUG-ITEM are permitted only
                   in the Declaratives Section.

               *   Delete the reference to DEBUG-ITEM, or move it to the
                   Declaratives Section.

0323        More than one USE procedure on same file 

               *   You have associated two or more USE procedures with
                   the same file when you can associate only one.

               *   Delete the additional USE references.

0324        More than one USE procedure for same open mode 

               *   You have associated two or more USE procedures with
                   the same file open mode when you can associate only
                   one.

               *   Delete the additional USE references.

0325        Illegal combination of debugging procedures 

               *   You have specified an invalid combination of USE FOR
                   DEBUGGING procedures in the Declaratives.

               *   Refer to the chapter Debug Module in your Language 
                   Reference--Additional Topics for details of debugging
                   procedures.  Correct the declaratives.

0326        Literal cannot be receiving field 

               *   You have specified a literal value as the receiving
                   field in an operation involving an implicit or
                   explicit move.  A receiving field must be a data item.

               *   Change the literal value to a reference to a data
                   item.

0327        Index item not permitted 

               *   You have named an index data item as the sending or
                   receiving field in a MOVE statement.  This is not
                   permitted.

               *   Move the value into a nonindex data item and use this
                   data item in the MOVE statement.

0328        Not allowed with OPTIONAL file 

0329        WHEN phrase missing from SEARCH statement 

               *   You have specified a SEARCH statement with no WHEN
                   phrase.  You must specify at least one WHEN phrase in
                   a SEARCH statement.

               *   Add a WHEN phrase to the SEARCH statement.

0330        Not a record name 

               *   You must specify the name of a file record in this
                   context (as defined in an FD entry in the File
                   Section).  You have probably misspelled a valid
                   record-name.

               *   Correct the reference so that it is a reference to a
                   file record.

0331        Program is nested--must compile with NESTCALL directive 

               *   Your program contains one or more nested programs.

               *   Specify the NESTCALL directive when you submit your
                   program to the COBOL system.

0332        AFTER phrase not allowed with inline perform 

               *   You cannot specify an AFTER phrase in an inline
                   PERFORM statement.

               *   Delete the AFTER phrase.

0333        Not an alterable paragraph 

               *   The paragraph you have named in an ALTER statement is
                   not an ALTERable paragraph.  An ALTERable paragraph
                   must consist of a single sentence containing only a
                   single GO TO statement (without a DEPENDING phrase).

               *   Change the reference in the ALTER statement to refer
                   to a paragraph that is ALTERable, or edit the named
                   paragraph so that it is an ALTERable paragraph.

0334        Cannot follow WHEN OTHER 

               *   The WHEN OTHER phrase, if specified, must be the last
                   phrase in an EVALUATE statement.

               *   Ensure any WHEN phrases precede the WHEN OTHER phrase.

0335        Selection object does not match selection subject 

               *   A type mismatch has occurred between one of the
                   selection subjects in an EVALUATE statement and the
                   corresponding selection object.

               *   Refer to the chapter Program Definition in your
                   Language Reference for the correct syntax of EVALUATE.
                   Correct the EVALUATE statement.



MPE/iX 5.0 Documentation