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
Can u please let me know how can i use SSA''s in IMS while fetching segments. Thanks, Rajesh

calculate simple interest

FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

Name the divisions in a COBOL program are given below DENTIFICATION DIVISION DATA DIVISION ENVIRONMENT DIVISION PROCEDURE DIVISION.

MULTI-DIMENSIONAL TABLES: The type of table which has been considered above is known as one-dimensional table. Whenever a table is such that each of its elements in turn is a

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

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

REWRITE statement: The REWRITE statement is used to update the existing record in a disk file. The normal format is as shown below: REWRIE  record-name  [  FROM      ide