Minus sign - edit characters for numeric data , COBOL Programming

Minus sign - edit characters for numeric data:

The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will be inserted in the said place. On the other hand, if the item is positive, the space character will be inserted.

Examples:

823_Minus sign.png

         869_Minus sign1.png

 

Posted Date: 10/16/2012 4:06:37 AM | Location : United States







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

Write discussion on Minus sign - edit characters for numeric data
Your posts are moderated
Related Questions
SUBTRACT VERB: The SUBTRACT verb is used to subtract one, or the sum of two or more numbers from one or more numbers and to store the result. The form of the SUBTRACT verb

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

Minus sign - edit characters for numeric data: The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will

Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)

Example of Nested if statement: Illustration: Consider the following sentence The nested IF sentence holds two IFs and one ELSE. The IF-ELSE couple has been marke

we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file

Example of Write statement: Illustration: (i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES. This WRITE statement specified that the TRANS-RECORD is a record name of a fi

Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma

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

Point Location: The position of the decimal point is the other characteristic which can be specified in the case of the numeric data items. If the position is not specified, t