DB2 SQL Return Codes and COBOL Programming
Test your knowledge of DB2 SQL return codes (including deadlocks, authorizations, and cursor states), database object dependencies, and COBOL NEXT SENTENCE control flow in mainframe environments
Questions
Question 1 Multiple Choice (Single Answer)
In the below code, what will happen if first IF is satisfied. IF A=B NEXT SENTENCE ELSE IF C=D Move 20 to C End-If Move 40 to D End-If. Move A to B. Move C to D.
- (A) Control Starts after the line where, FULLSTOP is present
- (B) Control Starts after the line where, First END-IF is present
- (C) Control starts after the line where, its respective END-IF is present
- (D) None of the above.
Question 2 Multiple Choice (Single Answer)
Drop dependencies
- A. STORAGE GROUP -->DATABASE --> TABLESPACE -->TABLE--> VIEW
- B.TABLESPACE -> DATABASE-> TABLE-> VIEW--> STORAGE GROUP
- C. DATABASE --> TABLE --> TABLE SPACE --> VIEW-->STORAGE GROUP
- D. VIEW --> TABLE --> DATABASE--> TABLE SPACE --> STORAGE GROUP
Question 3 Multiple Choice (Single Answer)
SQL Return code -180
- Foreign Key constraint
- Bind Issue
- Invalid date or Time
- Invalid string
Question 4 Multiple Choice (Single Answer)
SQL Retun code -181
- Bind issue
- String representation of invalid date value
- Both A and B
- No Null indicator
Question 5 Multiple Choice (Single Answer)
SQL Return code -204
- Row not found
- Column not found
- Both A and B
- Table not found
Question 6 Multiple Choice (Single Answer)
SQL Return code -501
- With Hold option missing
- Cursor not open
- Cursor not close
- BOTH B and C
Question 7 Multiple Choice (Single Answer)
SQL Return Code -502
- Cursor not closed
- Cursor not opened
- Cursor already open
- ALL the ABOVE
Question 8 Multiple Choice (Single Answer)
SQL Return Code -503
- Invalid column values
- Invalid date or time
- Update issue. Update clause missing in the select statement of the cursor
- BOTH A and B
Question 9 Multiple Choice (Single Answer)
SQL Return code -530
- Foreign Key constraint
- Bind issue
- Authorization iussue
- BOTH A and C
Question 10 Multiple Choice (Single Answer)
SQL Return code -532
- Restriction in deletion
- Foreign key constraint
- Invalid update
- Both A and B
Question 11 Multiple Choice (Single Answer)
Sql Return code -803
- Column value is not valid
- Duplicate Value
- Row not found
- BOTH A and C
Question 12 Multiple Choice (Single Answer)
Sql Return code -117
- Row not found
- Privilege issue
- Bind issuie
- Insert value is missing for a Column
Question 13 Multiple Choice (Single Answer)
Sql Return code -805
- Column not found
- Duplicate value
- Bind issue
- Invalid time and date
Question 14 Multiple Choice (Single Answer)
Sql Return code -811
- Fetching only Zero Rows
- Fetching more than one row.
- Table not found
- BOTH A and B
Question 15 Multiple Choice (Single Answer)
Sql Return code -818
- Bind issue
- No Null indicator found
- Invalid Date or Time
- Timestamp mismatch between Load and BIND
Question 16 Multiple Choice (Single Answer)
Sql Return code -904
- RESOURCE UNAVAILABLE
- TABLE NOT FOUND
- PLAN NOT FOUND
- ALL THE ABOVE
Question 17 Multiple Choice (Single Answer)
SQL Retun code -911
- BOTH B and C
- Privilege issue
- Dead Lock
- No row found
Question 18 Multiple Choice (Single Answer)
Sql Return code -913
- Access not given
- Plan not found
- Deadlock and Timeout
- Authorization isse
Question 19 Multiple Choice (Single Answer)
SQL Return code -922
- Dead Loack
- Time out
- BOTH A and D
- Authorization failure
Question 20 Multiple Choice (Single Answer)
Sql Return Code 100
- Colum not found
- Rows found
- No Row found
- Both A and B