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
PROGRAM FOR SIMPLE PERFORM: We have to write a program to elaborate simple PERFORM statement Identification division. Program- id.  Perf1. Environment division. Da

IF STATEMENT: The easiest form of the IF statement is  IF condition-1 statement-1 where the condition-1 may be any one from the shown below. When the condition-1

Illustration of Perform with varying option: A) Perform para-3 varying the k from 1 by 1 until k > 10. Here para-3 will be constantly executed 10 times (For k=1,2,3, .....1

BLANK WHEN ZERO: BLANK WHEN ZERO is an editing clause that may be used along with a picture. This will set the whole data item to blanks of its value is equal to zero. Though,

Identification Division: The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the mac

PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul

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

77 level used for- It is Elementary level item. it Cannot be subdivisions of other items or cannot be qualified, or they can be subdivided themselves.

PROGRAM FOR INVENTORY  We have to write a program to update the inventory file. Consider 2 files,viz, invfile an tranfile. Invfile has 3 fields pno,name,qty. Tranfile has 3 fil