Non numeric literals - cobol program, COBOL Programming

Non numeric:

The nonnumeric literal is used in normal to output messages or headings. The Characters which are enclosed between " " constitute nonnumeric literal. The maximum number of characters which are allowed within the two quotation marks is compiler dependent.

Valid Nonnumeric Literal

"BHARATHIAR"

"DATA DIVISION"

"100.50"

"HOUR/RATE"

Invalid Nonnumeric Literal

7                               (valid as numeric literal but invalid as Nonnumeric literal)

"nine                        (Invalid as there is no quotation mark on the right)

12.5"                        (Invalid as there is no quotation mark on the left)


Posted Date: 10/16/2012 3:33:13 AM | Location : United States







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

Write discussion on Non numeric literals - cobol program
Your posts are moderated
Related Questions
Environment Division: The Environment Division is the second division in the COBOL source program. It is mainly machine-dependent . The computer and all the peripheral dev

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

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

PROGRAM FOR PERFORM ...UNTIL We have to write a program to find the sum of "n" natural numbers. Identification division. Program- id. PerfUntil. Environment division.

Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

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

PERFORM WITH VARYING OPTION: The format is as shown below:

CONDITIONS-NAME CONDITION:   The condition name is an entity which itself is a condition and these can have either a true or false value. Though, a condition name cannot be d

Illustration of the abbreviation: A few illustration of the abbreviation are given below: Illustration: The compound condition  AMOUNT GREATER THAN 499 AND AMOUNT L

RULES OF MOVE VERB:  The Data movement is managed by the rules which are as shown below: (a) The contents of the identifier - 1 or the value of the literal - 1 is moved to