| Back to Questions Page |
| Question |
What value the host varible will contain , if null
indicator value is -2 ? Will it contain the truncated value
or nothing will move ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Rahul |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
That Host Variable contain the Truncated value when Null
Indicator conatin value -2.  |
0 | Santy |
| |
| |
| Question |
What if we try to insert the base table through updatable
view , but failed to give a column value which is defined
as NOT NULL. |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
get error code "-407"
-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the
object column defined as NOT NULL values.  |
0 | Santy |
| |
| |
| Question |
What if , we failed to mentioed null indicator in sql
select query , that may retrieve null value ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Sorry for the above answer :(
Please see the Correct answer, we will get the SQL error -
305
-305:- The NULL value cannot be assigned to output host
variable number because no indicator variable is specified.  |
0 | Santy |
| |
| |
|
|
| |
| Answer |
it will retrive the garbage value.  |
0 | Santy |
| |
| |
| Question |
What if we fail to give values in columns declared as NOT
NULL ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Please correct the above error defintation :-
-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the
object column defiend as NOT NULL values.  |
0 | Santy_rathod007@yahoo.co.in |
| |
| |
| Answer |
we will get the sql error code "-407"
-407 :- An UPDATE, INSERT or SET VALUE is NULL, but the
object column cannot contain the NULL values.  |
0 | Santy |
| |
| |
| Question |
what is differnece between DROP TABLE & DELETE TABLE . |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
in DROP TABLE command it will remove the table containts as
well as table structure from the database catalog, also it
release all the storage space it has acquired previously.
we can't rollback it as it is a ddl command.
but in case of DELETE TABLE command it just delete all the
records but not relaese the spaces it acquires .it can be
rollback as it is a dml command.  |
0 | Samir Kumar Sahoo. |
| |
| |
| Answer |
DROP TABLe deletes the entire Structure of the TABLE from
the database with all the datas it contain, DELETE TABLE
deletes only the rows of the TABLE.  |
0 | Santy |
| |
| |
| Answer |
drop table deletes the entire structure from the database
and it also removes entry from syscat.tables. but where as
delete table only deletes the rows in the table.  |
0 | Durga Prasad |
| |
| |
| Question |
1. what if null values retrived from database and no null
indicator mentioned in query. What is sql code. |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
we will get the sql code "-305".
-305:- The NULL value cannot be assigned to output host
variable number because no indicator variable is specified.  |
0 | Santy |
| |
| |
| Question |
My cobol program(not having any sql statements) is calling
another cobol program ( having sql statements), what is
needed for compilation and run in jcls . |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Hi,
Lets consider the name the calling prg. as PROG1 and
called prg. as PROG2, Pgm PROG1 should be compiled as a
normal CBL pgm, and Pgm. PROG2 should be compiled as a
CoBoL-DB2 pgm. And the Run JCL should call the PGM PROG1,
using IKJEFT01 pgm, since it calls pgm PROG2 with SQL
statements. For the JCL u can refer to the JCLS link in the
same website  |
0 | Santy |
| |
| |
| Answer |
Thanks Santy for all the answers .  |
0 | Mangesh |
| |
| |
| Question |
What error I will get if my select query gives multiple
row while executing a Cobol-DB2 program.How can I solve it
without using a cursor.
|
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Mangesh |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Thanks Debu & Santy  |
0 | Mangesh |
| |
| |
| Answer |
u will get -811 error code.
this will b solve in different way. first u have to find
out y this error comes.
exmple :-
If u r selecting the address of the emp with help of
Name key, then may b same name contain 2 different address,
as per the business need, it may contain 1 defualt address
and other is alternet address.
So as per the business need find out that which address
u want to select, and as per this need u can use one flag
veriable to differentiate these 2 address. make the change
as per above in ur table. with the help of solution u can
solve the above problem without using the cursor.  |
0 | Santy |
| |
| |
| Answer |
-811 ERROR CODE  |
0 | Dedu |
| |
| |
|
| |
|
Back to Questions Page |