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.

Examples:

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
RULES OF RENAMES CLAUSE:   The rules below should be observed while using the RENAMES clause: (i) All RENAMES entries should be written only after the last record descript

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c

MERGE VERB WITH OUTPUT PROCEDURE: Like the sort verb, the merge verb can also have an output procedure. The syntax of the MERGE verb is as shown below:   The r

PROGRAM FOR MASTER FILE MAINTENANCE: We have to write a program to keep the stu-file for which a record has just 2 fields,viz., rno(Roll Number) and name(Student Name). Give t

INDEXED SEQUENTIAL FILES: In the indexed sequential files which are also known as indexed files, the records are stored in the sequence order generally in ascending order. In

INDEXED TABLES: The OCCURS clause that is used to define tables can optionally have an INDEXED phrase. This phrase involves the names of data items which are to be used as sub

READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO   identifier ] [  ;  AT   END     imperative-s

PROGRAM FOR IF -ELSE: We have to write a program to check whether the given number is ODD or EVEN. You can use IF..ELSE. Identification division. Program- id. IfElse.

Illustration of Divide verb: (a) DIVIDE 5 INTO A. If the value of A is 20, then after execution of this statement the value of A will be 4. The older value of A will be los