LTIMindtree
Olive Bar & Kitchen Interview Questions and Answers
Q1. Is any condition mandatory to call a program in COBOL?
No, there is no mandatory condition to call a program in COBOL.
In COBOL, a program can be called without any mandatory conditions.
The CALL statement is used to call a program in COBOL.
The called program can be executed based on the logic written within it.
Example: CALL 'PROGRAM-NAME' USING parameters.
Q2. What is COND parameter?
COND parameter is used to specify the condition code value of the previous step to determine the execution of the current step.
It is used in JCL statements like IF, ELSEIF, and COND.
It can be used to execute a step conditionally based on the return code of the previous step.
It can also be used to skip a step based on the return code of the previous step.
The syntax for COND parameter is COND=(code, operator, stepname).
Q3. What is SQL CA?
SQL CA stands for SQL Communications Area, which is a data structure used in mainframe programming to communicate between programs and the DB2 database.
SQL CA contains information about the SQL statement being executed, such as SQLCODE, SQLSTATE, and error messages.
It is used to pass information between the application program and the DB2 database.
SQL CA is typically defined in the working storage section of a COBOL program.
Example: EXEC SQL INCLUDE SQLCA END-EXEC
Q4. Restart logic in db2
Restart logic in db2
Restart logic is used to recover from system or application failures
It involves identifying the point of failure and restarting from that point
In DB2, restart logic is implemented using the RESTART and CONTINUE options
RESTART option starts the application from the beginning of a unit of work
CONTINUE option resumes the application from the point of failure
Q5. Complex situations in project
Handling complex situations in projects requires problem-solving skills, communication, and collaboration.
Identify the root cause of the complexity
Break down the problem into smaller tasks
Collaborate with team members to brainstorm solutions
Communicate effectively with stakeholders to manage expectations
Prioritize tasks based on urgency and impact
Q6. Call and copy difference
CALL statement is used to transfer control to another program while COPY statement is used to include copybooks in a program.
CALL statement is used to invoke a separate program or subroutine.
COPY statement is used to include copybooks in a program for reusability.
CALL statement transfers control to the called program and returns after execution.
COPY statement simply includes the contents of the copybook at the specified location.
More about working at LTIMindtree
Interview Process at Olive Bar & Kitchen
Top Mainframe Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month