RSS Feed for COBOL Interview QuestionsCategory: COBOL Interview Questions

Cobol Interview Questions »

1. When would you use in-line perform?
When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code (used from various other places in the program), it would be better to put the code in a separate para and use PERFORM para [...]

Cobol Interview Questions »

1. How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.
Syntax:
SORT file-1 ON ASCENDING/DESCENDING KEY key….
USING file-2
GIVING file-3.
USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2
GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.
file-1 is the sort workfile and must be described using SD [...]

Cobol Interview Questions »

1. Name the divisions in a COBOL program?
a.IDENTIFICATION DIVISION
b.ENVIRONMENT DIVISION
c.DATA DIVISION
d.PROCEDURE DIVISION.
2. What are the different data types available in COBOL?
Alpha-numeric (X),
alphabetic (A)
numeric (9).
3. What does the INITIALIZE verb do?
Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.
Numeric, Numeric edited items set to ZERO.
FILLER , OCCURS DEPENDING ON items left untouched.
4. What is [...]