COBOL is a versatile platform for the developers as they find their application in a lot of fields such as finance, administration etc. In case you are an aspirant who is seeking for jobs as a COBOL developer, you need to solve every possible question an interviewer can ask.
Here is a set of both basic and advanced level questions that may appear in your interview.
|Structured COBOL Programming||Object Oriented COBOL Programming|
INPUT PROCEDURE- It defines the operations where input files are first opened. After opening, records are read, edited and altered. It then goes for sorting operations and finally the files are closed.
[plain]RELEASE recordname FROM inputrecord [/plain]
OUTPUT PROCEDURE- It defines the operations where output file is first opened and it receives the sorted record in output record. Then the file is written and finally closed.
[plain] RELEASE recordname FROM inputrecord[/plain]
In sequential search, the elements are in random positions because they are searched from top to bottom and not in a specific direction. As such they don’t follow a specific sequence. Sequential search is conducted for lesser number of tables and SEARCH command is used here.
NOSSRANGE is used for performance sensitive applications. NOSSRANGE is a default option that doesn’t support any runtime error if the index or subscript runs out of range.
CONTINUE statement is used to give control to the next verb after the explicit scope terminator. When CONTINUE is coded, +1 will be added to input count.
Never Miss an Articles from us.