Most popular

What is Cobol interview questions?

What is Cobol interview questions?

18 COBOL Interview Questions and Answers

  • What do you know about COBOL?
  • What are the data types that COBOL supports?
  • What are the different divisions of a COBOL program?
  • List a few features of the COBOL language.
  • What is meant by IS NUMERIC clause?
  • What are level 66 and level 88 in COBOL?

What is the maximum size of numeric field we can define in Cobol?

What is the maximum size of a numeric field we can define in COBOL? The maximum size of a numeric field is PIC 9(18).

What is numeric check in Cobol?

The numeric class test checks the contents of a data item against a set of values that are valid for the PICTURE and USAGE of the data item. …

How do you check if a number is negative in COBOL?

You use a numeric-edited PICture, and specify at least on “-” (minus sign) in an appropriate place. The “-” position will appear as that character for a negative value, but space will appear instead if positive.

How do you inspect in COBOL?

INSPECT Statements

  1. INSPECT statement with TALLYING phrase (Key Phrases to use: BEFORE/AFTER, CHARACTERS, ALL, LEADING and FIRST)
  2. INSPECT statement with REPLACING phrase (Key Phrases to use: BEFORE/AFTER, CHARACTERS BY, ALL, LEADING and FIRST)
  3. INSPECT statement with TALLYING and REPLACING phrases.

What is a picture clause in COBOL?

COBOL – Picture Clause The Picture clause is used to specify the type and size of an elementary data item. It consists of the word PIC or PICTURE followed by the actual picture clause, where the type and size are specified. Each picture character represents one position in the data item.

What is 66 level used for in Cobol?

The 66 level assigns an alternate name to a field or group. It doesn’t add a new field to the record, it just assigns an alternate name to an existing field. You must use the level number 66 for data description entries that contain the RENAMES clause.

What is the use of 77 level in COBOL?

77 Level Number Uses, significance:77 is a special Level number in COBOL which is used to declare the Individual Elementary data items. Of course, Individual elementary data items can be declared using 01 level but 77 declared fields does not allow any sub ordinate data field declarations.

What do you mean by file handling in COBOL?

File Handling in Cobol. File Handling in COBOL File: A file is a collection of data related to a set of entities and typically exists on a magnetic tape or a disk.

How does the output procedure work in COBOL?

In the INPUT PROCEDURE, the input file is opened, records are read and edited and then are released to the sorting operation. Finally the file will be closed. In the OUTPUT PROCEDURE, output file is opened, the sorted record is returned to the Output record and then the record will be written. Finally the file will be closed.

How is COBOL used as a business language?

As a business language, COBOL can handle large volumes of data, and programmers can compile, execute and bring together this language on many machines. In my last job, I frequently used its debugging and testing tools when looking for solutions.

What are the file opening modes in COBOL?

File opening modes in COBOL include: INPUT, OUTPUT, I-O, and EXTEND. What is the maximum size of a numeric field we can define in COBOL? The maximum size of a numeric field is PIC 9 (18). What is the difference between CONTINUE and NEXT SENTENCE?

Author Image
Ruth Doyle