Figurative constants - cobol program, COBOL Programming

Figurative Constants:

The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

Consider the statement as shown below:

MOVE ZERO TO COUNTER

Here value 0 will be moved to the COUNTER by the compiler, as it recognizes ZERO and sets the COUNTER with 0. The list of figurative constants is shown below:

Figurative            Constant Meaning

ZERO

ZEROS                     value 0

ZEROES

SPACE

SPACES                   One or additional blanks

HIGH-VALUE

HIGH-VALUES      The Highest value in the Collating sequence

LOW-VALUE

LOW-VALUES       Lowest value in the Collating sequence

QUOTE

QUOTES                one or more of "

ALL literal              one or more of string characters comprising the literal

 

Posted Date: 10/16/2012 3:34:14 AM | Location : United States







Related Discussions:- Figurative constants - cobol program, Assignment Help, Ask Question on Figurative constants - cobol program, Get Answer, Expert's Help, Figurative constants - cobol program Discussions

Write discussion on Figurative constants - cobol program
Your posts are moderated
Related Questions
How do i write a simple cobol programming that works

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

OCCURS - INDEXED BY PROGRAM: identification division. program- id. searching. environment division. data division. working-storage section. 01 table1.      0

Illustration of Perform with varying option: A) Perform para-3 varying the k from 1 by 1 until k > 10. Here para-3 will be constantly executed 10 times (For k=1,2,3, .....1

CLOSE statement: The simplified syntax of the CLOSE statement is as shown below:   CLOSE          file-name-1   [WITH   LOCK   ]                         [  , file-

77 level used for- It is Elementary level item. it Cannot be subdivisions of other items or cannot be qualified, or they can be subdivided themselves.

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

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

Introduction to COBOL: In the year 1959, a new language named the COBOL ( CO mmon B usiness O riented L anguage) was introduced remembering the business purpose application

ADD VERB: The ADD Verb can be used to find the sum of two or more numbers and to store the sum.  The ADD verb takes any one of the two forms as shown below: