Edit characters for numeric data, COBOL Programming

Edit Characters for Numeric Data:

The characters below can be used in the PICTURE clause to indicate the editing.

  Z    *  $  -    +    CR    DB    .    ,    B    O    /

The use of these edit characters are elucidate below:

Z (Zero Suppression) :

The edit character Z is used to repress the leading zeroes in the numeric data item. The leading zeroes are substitute with blanks.

The Z character has no effect of trailing the zeroes.

 

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







Related Discussions:- Edit characters for numeric data, Assignment Help, Ask Question on Edit characters for numeric data, Get Answer, Expert's Help, Edit characters for numeric data Discussions

Write discussion on Edit characters for numeric data
Your posts are moderated
Related Questions
GO TO, STOP RUN: The GO TO verb is used to completely transfer the control to elsewhere in the program. Its form is as shown below: GO TO procedure-name As a result o

Display control verbs in Cobol

PROGRAM FOR IF -ELSE: We have to write a program to check whether the given number is ODD or EVEN. You can use IF..ELSE. Identification division. Program- id. IfElse.

can we move spaces to numeric field

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

cobol program for generate a eb bill

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can

MULTIPLY VERB:   The Multiply Verb causes one or more multiplicands to be multiplied by the multiplier and to store the products. The form of the MULTIPLY verb is as shown be

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

PROGRAM FOR PERFORM - THRU: We have to write a program to elaborate PERFORM ...THRU statement Identification division. Program- id.  Perfthru. Environment division.