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
FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de

STATEMENTS FOR SEQUENTIAL FILES: A basic operation on a file includes the reading and writing of its records. Whenever the file is sequential, there are three verbs for the

OPEN STATEMENT: Whenever a READ or a WRITE operation is executed on a file, then it should be open. The opening of a file may be completed with the help of the OPEN verb. With

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

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 treat

Example of File-control: The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the devic

.(Period or Decimal Point) : The period may be used to insert a decimal point and may not come into view more than once. Both the period and V cannot appear in similar picture

FILE CHARACTERISTICS: The task of file handling is the responsibility of the system software termed as IOCS (Input-Output control system). Record Size: We know that th

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: