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
Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

WRITE statement: The WRITE statement for tape and sequential-disk files has the syntax shown below. WRITE            record-name      [  FROM    identifier   ] As a resu

Display control verbs in Cobol

There are some restrictions when these procedures are used. (i) The Procedure should not contain any SORT/MERGE statement. (ii) An explicit transfer of the control outside

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il

ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

INPUT AND OUTPUT PROCEDURE IN SORT STATEMENT: The common format of the SORT statement can write as shown below: The format of the RELEASE statement is as shown be

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

FILE-CONTROL paragraph for the relative files: The normal format for the SELECT clause for a relative file is as shown below. SELECT  file-name  ASSIGN  TO  implementor-nam

Record Description for the Variable-length Records: When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 f