- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a use of SQLWARN3 in a SQLCA? Explain with the help of a practical example?
The SQLWARN3 field in SQLCA is used to detect the condition wherein the number of the resultant columns is greater than the number of host variables given in the query of a COBOL-DB2 program. The SQLWARN3 is a 1 byte field, which contains the value ‘W’when there is mismatch in number of columns returned by the query and number of host variables used.
We can enquire the status of SQLWARN3 using IF or EVALUATE statements as in the below example
A010-CHECK-ORDER. EXEC SQL SELECT ORDER_DATE, ORDER_TOTAL INTO :ORDER-DATE, FROM ORDERS WHERE ORDER_ID = :ORDER-ID END-EXEC EVALUATE SQLWARN3 WHEN ‘W’ DISPLAY ‘MISMATCH IN COLUMNS & HOST VARIABLES’ WHEN OTHER DISPLAY ‘QUERY EXECUTED SUCCESSFULLY’
- Related Articles
- What is CLUSTERED INDEX in DB2? Explain with the help of practical example.
- What is NON CLUSTERED INDEX in DB2? Explain with the help of practical example
- What is the use of the VALUE function in a DB2? Explain with the help of an example
- (a) What is meant by a contact force? Explain with the help of an example.(b) What is meant by a non-contact force? Explain with the help of an example.
- How to use SQLCA in a COBOL-DB2 program? What is the purpose of SQLCA?
- What is Dobereiner’s law of triads? Explain with the help of one example of a Dobereiner’s triad.
- What is symbiotic relationship? Explain with the help of an example
- What is the purpose of COALESCE function? Explain with the help of an example.
- What is an organic evolution? It cannot be equated with progress. Explain with the help of a suitable example.
- What is a thermite reaction? Explain with the help of an equation. State one use of this reaction.
- (a) What is the significance of the symbol of an element? Explain with the help of an example.(b) Explain the significance of the symbol H.
- What is a soundboard? Explain the working of a soundboard with the help of a labelled diagram.
- What are COLUMN functions in DB2? Explain with the help of an example
- What is meant by (a) displacement reaction, and (b) double displacement reaction? Explain with the help of one example each.
- What is Fixed-list SELECT? Give the syntax and explain with help of an example

Advertisements