Literals - cobol program, COBOL Programming

Literals:

The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero will be moved to the variable TOTAL. This constant 0 that is used in the body of the statement is a literal.

A data name may have various values at various points of time while a literal means the specific value that remains unchanged throughout the execution of the program. For this reason the literal is frequently termed as a constant. Furthermore the literal is not given a name; it presents itself and does not need to be defined in the Data Division.

There are 3 kinds of literals:

a) Numeric

b) Nonnumeric.

c) Figurative constants

 

 

 

Posted Date: 10/16/2012 3:31:12 AM | Location : United States







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

Write discussion on Literals - cobol program
Your posts are moderated
Related Questions
PROGRAM FOR SCREEN SECTION WITH FILES: identification division.   program- id.   environment division.          input-output section.   file-control.     select

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an

INPUT AND OUTPUT PROCEDURE IN SORT STATEMENT: The common format of the SORT statement can write as shown below: The format of the RELEASE statement is as shown be

PERFORM WITH TIMES OPTION: The format of a PERFORM TIMES statement is as shown below: Illustration:   A)  Perform the para-2 5 times. In this situation the specifie

RULES FOR OCCURS CLAUSE: The rules apply for the OCCURS clause and the subscripts are as shown below. (1) The integer in the OCCURS clause should be a positive integer.

Comparing features of oracle rdbms with Mysql

Example of Write statement: Illustration: (i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES. This WRITE statement specified that the TRANS-RECORD is a record name of a fi

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

BLOCK CONTAINS CLAUSE: Integer -1 of the BLOCK CONTAINS clause indicates the block size either in terms of records or in terms of characters. For illustration, BLOCK CONTAINS

Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.