Division in COBOL

Divisions :-

     1.     What are the Different components of COBOL
Character          :        Lowest component 
Word                :        One or more characters
Clause              :        Words and characters specifying attribute of entry
Statement         :        Syntactically valid combination of words and clauses
Sentence           :        Sequence of one or more statements terminated by
period
Paragraph         :        one or more sentences
Section             :        one or more paragraphs
Division             :        One or more paragraphs or sections
Program            :        Made up of divisions
     2.     Name the divisions in a COBOL program?
Identification Division              :                  Identifies Program

Environment Division               :                  Defines Computer used
          Defines Files

Data Division                         :                  Describes Files
          Defines Variables, Constants

Procedure Division                  :                  Actual logic of program
     3.     HOW MANY SECTIONS ARE IN DATA DIVISION?
Three main sections
1.FILE SECTION
2.WORKING-STORAGE SECTION
3.LINKAGE SECTION

0 comments:

Computers TopOfBlogs Technology Blogs Mainframe interview question and answers,mainframe jobs,cobol,vsam,jcl,cics,db2,rdbms,mvs,tso,ispf,ibm,hcl,tcs,cts,wibro Blog Directory