where will u check for sqlcode ?
Answers were Sorted based on User's Feedback
Answer / shaan
Be sure to include sqlca in working storage section.
Then you can check sqlcode from the copybook variable SQLCODE.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / guru
If you dont include SQLCA, Define SQLCODE and SQLSTATE as
working storage variables and This will suffice
| Is This Answer Correct ? | 2 Yes | 0 No |
how many bytes timestamp token occupies?
6 Answers Boss Global, Cap Gemini, TCS,
Shall i use this query to retrieve first 4 records, Select empno, sal from emptbl where empno < 5. like this can we fetch first 100 records?
1. what if null values retrived from database and no null indicator mentioned in query. What is sql code.
can any one give the list of some important sql abend codes which r frequently asked in interviews?
query to just fetch first matching row and stop execution. once one matching row is found ..no more records should be checked.. if the first record is matching.. the query must stop
How do I create a view in db2?
In db2, how do you insert multiple rows in 1 query using a.) Cursors, b.) Normal query?? Give syntax for both.
How do you retrieve the data from a nullable column?
For Null indicator we have 3 values 0,-1,-2. 0->Not nulll -1->Null -2->Value truncated If ther is any possibility to have any positive value other than 0 in Null indicator.If it is so then when we will get and what is the value?
What's the Maximum Length of SQLCA and what's the content of SQLCABC?
i want to maintain uniqueness on pdf without make lf??????????
Where besides the DB2 catalog is database object information stored by DB2?