Picture clause, COBOL Programming

Picture Clause:

The picture clause explains the general characteristics of an elementary data item.

These characteristics are elaborated below:

Class:

In COBOL the data item may be one of the 3 classes - numeric, alphabetic or alphanumeric. The numeric items consist only of digits 0 to 9. The Alphabetic items consist only of the letters A to Z (a to z) and the space (blank) character. The alphanumeric may consist of alphabets, digits as well as the special characters. 

 

Posted Date: 10/16/2012 3:46:28 AM | Location : United States







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

Write discussion on Picture clause
Your posts are moderated
Related Questions
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

FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

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

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

Valid and Invalid Word - Cobol words: Valid Word             Invalid Word & Reason emp-sal                  -pay   ( it starts with a hyphen)  TOTAL MARK (blank space em

single program how may when statement has used

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

WRITE Statement:      The WRITE statement for a relative file has the format which is as shown below.          WRITE  record-name   [ FORM   identifier ]

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a

Illustration of Perform with varying option: A) Perform para-3 varying the k from 1 by 1 until k > 10. Here para-3 will be constantly executed 10 times (For k=1,2,3, .....1