MAINFRAME - COBOL INTERVIEWQUESTIONS
1.Name the divisions in a COBOL program.
IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATADIVISION, PROCEDURE DIVISION.
What are the different data types available inCOBOL?
Alpha-numeric (X), alphabetic (A) and numeric (9).
3.What does the INITIALIZE verb do? –
Alphabetic, Alphanumeric fields & alphanumeric editeditems are set to SPACES.Numeric, Numeric edited items set to ZERO.FILLER , OCCURS DEPENDING ON items left untouched.
4.What is 77 level used for ?
Elementary level item. Cannot be subdivisions of otheritems (cannot be qualified), nor can they be subdividedthemselves.
5.What is 88 level used for ?
For condition names.
6.What is level 66 used for ?
For RENAMES clause.
7.What does the IS NUMERIC clause establish ?
IS NUMERIC can be used on alphanumeric items, signednumeric & packed decimal items and usigned numeric &packed decimal items. IS NUMERIC returns TRUE if the itemonly consists of 0-9. However, if the item being tested is asigned item, then it may contain 0-9, + and - .