Blank when zero - edit characters for numeric data, COBOL Programming

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, the edit character asterisk (*) may not be used if BLANK WHEN ZERO is specified. When this clause is used to explain a field whose picture holds an asterisk, it is ignored by the compiler. The syntax of this clause is as shown below:

BLANK WHEN ZERO

Examples:

213_blank with szero.png

 

Posted Date: 10/16/2012 4:17:50 AM | Location : United States







Related Discussions:- Blank when zero - edit characters for numeric data, Assignment Help, Ask Question on Blank when zero - edit characters for numeric data, Get Answer, Expert's Help, Blank when zero - edit characters for numeric data Discussions

Write discussion on Blank when zero - edit characters for numeric data
Your posts are moderated
Related Questions
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

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

Occurs Clause: Let us establish tables with the help of an illustration. Assume that there are ten different types of income-tax rates that are read from some input medium and

Figurative Constants: The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

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

calculate simple interest

PERFORM WITH UNTIL OPTION: The format is as shown below: Illustration:  A) Perform p-3 until i > 5. Here p-3 will be executed whenever i B)  Perform p-2 thru

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

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

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be