- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
COBOL Interview Questions & Answers - Learning Mode

COBOL Interview Questions & Answers - Learning Mode

COBOL (/ˈkoʊbɒl/, an acronym for common business-oriented language) is a compiled English-like computer programming language designed for business use. It is imperative, procedural and, since 2002, object-oriented. COBOL is primarily used in business, finance, and administrative systems for companies and governments. Developers‎: ‎CODASYL‎, ‎ANSI‎, ‎ISO COBOL was developed in 1959 by the Conference on Data Systems Languages (CODASYL). This committee was a formed by a joint effort of industry, major universities, and the United States Government.

Try COBOL Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 9 10 Next

Sort By : Latest First | Oldest First | By Rating

COBOL Interview Questions & Answers - Learning Mode
Try COBOL Interview Questions & Answers - Exam Mode
Question: 77 I PI 9.

What output/msg is likely when this program is executed thru JCL?

Answer: This loop will give compilation error becoz value of I is declared for only one digit , when loop reaches to 10 it will find mismatching b/w I & the current value i.e. 10. Source:
Question: Can we reverse the string in cobol ? See the following problem :

77 SRNAME PIC X(10).


Answer: we can reverse the string using cobol prog like this :

01 STR2 PIC X(1).
01 STR3 PIC X(7) VALUE SPACE. Source:
Question: What is meant by abbend and what is the difference between abbend and error.
when does and why dose it come.
what are the types?

Answer: Abend is short for Abnormal end, abend is a term used to describe when a program or task ends without warning. Generally when an abend is encountered the user will receive some type of error message.

Error occurs because of Syntax problems or dataset disposition issues etc, whereas Abend occurs because of some functional problems

SB37 - End of Volume
SE37 - Maximum extents reached
S013 - Member not found
S80A - Region limit violation Source:
Question: Give brief me about changeman & expidator tool.

Answer: Expeditor Tool :

This is a debugging tool. Handly tool mostly widely used everywhere. There are two types of expediting, online exped and batch exped.

For online exped, you may first need to compile and link your module. Supply your link to the exped job. The exped will pick the module. You can use breakpoint for exped.

Similar is the case for Batch Exped.

Its all depends how your envirnornment allows you to set up.

Question: Explain call by context by comparing it to other calls.

Answer: I think this Q&A should say "CONTENT" rather than "context". Source:
Question: What is the difference between a binary search and a sequential search? What are the pertinent COBOL commands?

Answer: In a binary search the table element key values must be in ascending or descending sequence. The table is 'halved' to search for equal to, greater than or less than conditions until the element is found. In a sequential search the table is searched from top to bottom, so (ironically) the elements do not have to be in a specific sequence. The binary search is much faster for larger tables, while sequential works well with smaller ones. SEARCH ALL is used for binary searches; SEARCH for se Source:
Question: When is a scope terminator mandatory?

Answer: Scope terminators are mandatory for in-line PERFORMS and EVALUATE statements. For readability, it's recommended coding practice to always make scope terminators explicit. Source:
Question: What is file status 39 ?

Answer: Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL program & the JCL (or the dataset label). You will get file status 39 on an OPEN. Source:
Question: What is the maximum size of a 01 level item in in COBOL II?

Answer: 16777215 Source:
Question: What does EXIT do?

Answer: Does nothing! If used, must be the only sentence within a paragraph. Source:
Question: Without execution cobol program how to see output?

How to rename input filename and outputfile name?

3) Wat is flag?

4) What is impact analysis what basis how will you write test cases?

5) How you sea output of cics command?

6) How are datasets concatenated explain with example?

Answer: According to my knowledge,<br><br>1) You cannot see the output of a program unless you have executed the program. but You can see the results of a CICS pgm using INTERTEST.<br><br>2) I DONT KNOW<br><br><br>3) Flags would be assigned a value based on some condition. While using it for some processing, there is no need to calculating every time. u can calculate one time and keep the decision saved in a varibale. this can be used multiple times.<br>&l Source:
Question: What is the use of EVALUATE statement?

Answer: Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and case is that no 'break' is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is made. Source:
Question: What does a COMMIT statement do?

Answer: It writes a checkpoint to the Journal File and releases any record locks. Source:
Question: How is sign stored in a COMP field ?

Answer: In the most significant bit. Bit is on if -ve, off if +ve. Source:
Question: What is the difference between local and central version operating modes?

Answer: In local there is no IDMS System running above the DBMS. It is the more efficient mode but lacks the recovery and integrity facilities of the central version (CV) control program. In CV many application programs access the database through a single copy of the DBMS.
Question: What is a bind?

Answer: A bind associates record types with the program work area; for run unit and records it is the first command issued in the program. Source:
Question: What is the difference between index and subscript?

Answer: Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET.

Need to have index for a table in order to use SEARCH, SEARCH ALL. Source:
Question: What do you do to resolve SOC-7 error?

Answer: Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.

Many installations provide you a dump for run time abends ( it can be generated also by calling some subroutines or OS services thru assembly language). These dumps provide the offset of the last instruction at which the abend occurred. Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset. Then you can look at the source code to fin Source:
Question: What is an in line PERFORM? When would you use it? Anything else to say about it?

Answer: The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph. In line PERFORMs work as long as there are no internal GO TOs, not even to an exit. The in line PERFORM for readability should not exceed a page length - often it will reference other PERFORM paragraphs.
Question: What is the difference between CONTINUE & NEXT SENTENCE?

Answer: CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by a period) Source:

1 2 3 4 5 6 7 8 9 10 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.046875 Seconds