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
PROGRAM FOR SIMPLE PERFORM: We have to write a program to elaborate simple PERFORM statement Identification division. Program- id.  Perf1. Environment division. Da

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION: We have to write a program to create an Indexed Sequential File in a dynamic mode for Student particulars. Suppose just 3 fields:

/ (Slash Insertion): The edit character slash (/) also termed as virgule or stroke, may appear anyplace in the picture. When used, it will be inserted. More than one slash can

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica

WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

VALUE CLAUSE: The value clause defines the preliminary value of the data item. Normally initialization will be completed just before the first statement in the procedure di

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

Illustration of Search verb: To illustrate the other use of SEARCH verb, assume we wish to search the similar tab to find the number of persons whose deposited amount is more

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file