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
OCCURS - INDEXED BY PROGRAM: identification division. program- id. searching. environment division. data division. working-storage section. 01 table1.      0

Illustration of Multiply verb: (a)  MULTIPLY A BY B. In this situation the value of A & B will be multiplied and the product will be stored in B.  The decimal point locatio

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

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

CLASS CONDITION:   The class condition establishes whether or not the value of the operand is numeric or alphabetic. The operand is numeric if it contains only the digits 0 t

FILLER CLAUSE: Consider the statements as shown below: 1)  01    f    pic     x(80)  value    all "-". This statement origins a line of 80 characters filled with "-"

What is the difference between subscript and index

ACCEPT STATEMENT: The ACCEPT statement is used to read the low-volume data from the operator's console, several other hardware device or from the operating system. The common

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples: