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
When using the accept verb in cobol is it possible to assign something other then "SYSIN" for a ddname?

COMPUTE VERB: The COMPUTE verb is very powerful. All the evaluations performed by the other 4 verbs can also be completed easily by using the COMPUTE verb. Its normal format i

GO TO, STOP RUN: The GO TO verb is used to completely transfer the control to elsewhere in the program. Its form is as shown below: GO TO procedure-name As a result o

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

INPUT-OUTPUT SECTION: This section holds information regarding the files to be used in the program. There are 2 paragraphs in this section- FILE-CONTROL & I-O-CONTROL. The

ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

RULES FOR INDEXED TABLES: The rules of indexing a table with an INDEXED phrase are as shown below: (1) If indexing is completed for any one level of a table, then indexing

SIGN CONDITION:   The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif

Illustration of perform statement: PERFORM    CALCUALTE-TAX. In this illustration, the CALCULATE-TAX is either a section name or paragraph name. Assume that it is a section

OCCURS CLAUSE - PROGRAM: We have to write a program to demonstrate the occurs clause. Get names of the students and show them on the screen.  identification division.