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

Example of read statement: Illustration: READ OLD-MASTER AT END MOVE ZERO TO END-OF-RECORDS. As a result of this statement, generally the next record from the OLD-MAST

PICTURE specification: The size of a group item is equivalent to the total of the sizes of all the subordinate elementary items. The group item class is alphanumeric. The i

GIVING    file-name-5. The input files to be merged through the MERGE statements which are specified in the USING phrase. These files should be sequential files and should be

MULTI-DIMENSIONAL TABLES: The type of table which has been considered above is known as one-dimensional table. Whenever a table is such that each of its elements in turn is a

Format for COBOL Programs: The COBOL is a high-level language. Therefore, a COBOL program can be executed on a computer for which a COBOL compiler exists. The compiler transla

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

Rules for Simple sort verb: The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below. The rules below should be taken

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

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 wil