RAMESH KRISHNA REDDY mainframe discussion forum - cobol, db2,cics,jcl,file-aid,changeman,interview questions
Online Tutorials   | PREV  | TOP  | NEXT



DRONA SERIES
COBOL STUDY MATERIAL


DATA ITEMS



   
 

COBOL DATA ITEMS






DATA ITEMS Any high level programming language have variable names for each data point used in the program. In COBOL, data represented using dataitems (variables). Now let us discuss about how we can declare the dataitems (variables) in COBOL. Using PICTURE clause in COBOL we will define the size, type and other characteristics of dataitem(s). Other form of PICTURE is PIC Let us learn what is the meaning of 999 in above example. 9 represents numeric data, three occurrence of 9 represents size of dataitem. 9(3) equals to 999. It can store 3 numeric digits of data. In Next Page we will see different types of code characters available in COBOL and their meaning. cobol data items, numeric data items, alpha numeric data items, alphabetic data items Initialization of data items in working-storage section happens using VALUE clause. VALUE clause need to code after picture clause as shown below. Value clause to initialize data item
    

NEXT CHAPTER TOPIC : COBOL


                                   



Previous chapter in COBOL tutorial Starting of COBOL tutorial Next chapter in COBOL tutorial


Visit COBOL books section in this site for good books




Home | Donations | Online Tutorials | Books | Entertainment | Contactme | privacy |  sql tutorial | jcl interview questions | JCL Tutorial | JCL Tutorial - chapter1 | JCL Tutorial - chapter2 | JCL Tutorial - chapter3 | JCL Tutorial - chapter4 | JCL Tutorial - chapter5 | JCL Tutorial - chapter6 | JCL Tutorial - chapter7 | JCL Tutorial - chapter8 | JCL Tutorial - chapter9 | JCL Tutorial - chapter10 | JCL Tutorial - chapter11