COBOL/DB2 and CICS Programming
Questions covering COBOL programming with DB2 database operations and CICS transaction processing on mainframe systems
Questions
STARTBR command is used to
- Read the file in sequential order
- Write the file
- To establish the starting position in a file
- All of the above.
What is an ASRA
- DB2/IDMS Database is not up
- Any data exception problem SOC7, SOC4 etc
- Runaway Task
- All of the above.
PUSH command is used
- To suspend the HANDLE CONDITION command
- To reactivate the HANDLE CONDITION command
- To PASS the HANDLE CONDITION command
- None of the above
POP command is used
- To suspend the HANDLE CONDITION command
- To reactivate the HANDLE CONDITION command
- To PASS the HANDLE CONDITION command
- None of the above
CICS can have the user interface with
- GUI Developed in VB using ECI calls
- Presentation logic devleloped on any platform using MQ Series
- Web applications through an Interner protocal like HTTP
- All of the above.
How can unusual conditions be handled in CICS.
- By writing an ALC exception handling routine
- With the RESP clause or HANDLE instructions.
- Calling the CICS Error Handler
- Via a call back routine.
What is COMMAREA?
- A communication area for a terminal.
- An area for an individual program to store all temporary flags.
- A communication area for processing data between CPUs.
- An area used to pass information between programs
What are the different types of tablespaces available.
- simple, hard, partitioned, unpartitioned
- partitioned, simple, lob, unpartitioned
- simple, lob, partitioned, segmented
- segmented, lob, hard, simple
Which are the four data modification db2 statements.
- select, update, create, insert
- select, update, alter, modify
- alter, update, create, insert
- select, update, delete, insert
Distinct keyword is used for.
- Add duplicates
- Remove duplicates
- Add duplicates and sort output
- None
What is auxillary table.
- It contains only numeric data
- It contains only character data
- It contains data like image, voice and doc’s.
- None of these
Difference between UNION and UNION ALL.
- Union wont remove the duplicate and it wont invoke the sort operation.
- Union all will remove the duplicate and it wont invoke the sort operation.
- Union won't remove the duplicate and it will invoke the sort operation.
- Union all will remove the duplicate and it will invoke the sort operation.
What is the communication area between DB2 and cobol to communicate the error codes.
- DCLGEN
- SQLCA
- SQLSTATE
- SQLCODE
A host variable structure can allow to contain an OCCURS clause.
- True
- False
Dynamic SQL statements are embedded in programs and bound before they are executed.
- True
- False
The COBOL copy statements will be expanded during pre-compile stage.
- True
- False
SQL data type DATE, TIME or TIMESTAMP will be accdepted as character strings in COBOL program
- True
- False
The data definition of Null indicator variables in cobol/DB2 program is ?
- PIC S9(09) COMP
- PIC S9(04) COMP
- PIC S9(8) COMP
- PIC 9(08) COMP
In Dynamic SQL ,The COMMIT or ROLLBACK statement destroys the prepared statement and the statement need to be prepared again.
- True
- False
Which step analyzes all the static SQL and stores the more efficient path to the data in a plan/package while compiling a cobol/DB2 program
- Precompile
- Package
- Bind
- Plan