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
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

REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

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

Illustration of Renames clause: In the illustration, PAT-OTHER-THAN-BASIC will become a fresh group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT & MTHLY-INCENTIVE. Keep in min

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus

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.

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia