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
THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

Comparing features of oracle rdbms with Mysql

PERFORM WITH VARYING OPTION: The format is as shown below:

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

Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

INPUT-OUTPUT SECTION: This section holds information regarding the files to be used in the program. There are 2 paragraphs in this section- FILE-CONTROL & I-O-CONTROL. The

PROGRAM FOR ADD CORRESPONDING: We have to write a simple program to demonstrate Add Corresponding.   identification division.   program- id.   environment division.

VALUE CLAUSE: The value clause defines the preliminary value of the data item. Normally initialization will be completed just before the first statement in the procedure di