Sign - picture clause, COBOL Programming

Sign - Picture clause:

The numeric data item can be signed or unsigned. If a numeric data is regarded as unsigned then during the execution these unsigned data items are treated as positive quantities.

To explain a signed data item one must use the code character S at the leftmost end of the picture clause of the corresponding variable.

It is very important to note that internally, the operational sign (S) is not stored as a separate character. The operational sign is stored at zone bits of the rightmost digit place of the data item. While preparing a data for such an input-signed item, care must be taken to ensure that the data appears on the input medium in similar form.  

 

 

Posted Date: 10/16/2012 3:47:14 AM | Location : United States







Related Discussions:- Sign - picture clause, Assignment Help, Ask Question on Sign - picture clause, Get Answer, Expert's Help, Sign - picture clause Discussions

Write discussion on Sign - picture clause
Your posts are moderated
Related Questions
Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

Environment Division: The Environment Division is the second division in the COBOL source program. It is mainly machine-dependent . The computer and all the peripheral dev

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

PROGRAM FOR PERFORM - VARYING: We have to write a program to elaborate PERFORM ...VARYING Identification division. Program- id. PerfVary. Environment division. Dat

PROCEDURE DIVISION statements for the relative files: The statements OPEN, CLOSE, READ, WRITE and REWRITE that are available for sequential files are also available for the re

SEARCH VERB: The SEARCH verb is used to position elements in one-dimensional tables. Let us consider the following problem. Assume that each element of a table consists of thr

Comparison of Nonnumeric Operands: A nonnumeric operand can be compared to the other nonnumeric operand according to the rules as shown below: (i) Fields of Equal Sizes:

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

PROGRAM FOR ELECTRICITY BILL: An electricity company supplies electricity to 4 types of customers coded 1, 2, 3 & 4.The rate schedule for customers is shown in one table as