Data names and identifiers - cobol program, COBOL Programming

Data Names and Identifiers: 

The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whenever that specific data name is used in the Procedure Division.

The Identifier is a general term that means the single data name or a data name qualified, indexed or subscripted. The Data names are only one form of the identifiers. The data name should be a user-defined word and it cannot be a reserved word.


Valid Data Names                     Invalid Data Names

NET-SALARY                         COMPUTE (Reserved word)

TOT-MARK                             MULTIPLY (Reserved word)

N100                                         23 (No letter) 





Posted Date: 10/16/2012 3:30:27 AM | Location : United States

Related Discussions:- Data names and identifiers - cobol program, Assignment Help, Ask Question on Data names and identifiers - cobol program, Get Answer, Expert's Help, Data names and identifiers - cobol program Discussions

Write discussion on Data names and identifiers - cobol program
Your posts are moderated
Related Questions
.(Period or Decimal Point) : The period may be used to insert a decimal point and may not come into view more than once. Both the period and V cannot appear in similar picture

FILLER CLAUSE: Consider the statements as shown below: 1)  01    f    pic     x(80)  value    all "-". This statement origins a line of 80 characters filled with "-"

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia

RULES OF REDEFINES CLAUSE The rules shown below govern the use of the REDEFINES clause: (i) The level-number of data-name-1 and data-name-2 should be identical. (ii) Exce

RULES FOR OCCURS CLAUSE: The rules apply for the OCCURS clause and the subscripts are as shown below. (1) The integer in the OCCURS clause should be a positive integer.

Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

Edit Characters for Numeric Data: The characters below can be used in the PICTURE clause to indicate the editing.   Z    *  $  -    +    CR    DB    .    ,    B    O    /

single program how may when statement has used