how 2 resolve the -311 sqlcode



how 2 resolve the -311 sqlcode..

Answer / shravan kumar.p

If Length is not declared for varchar, sql code -311 will appears...
by giving the varchar lenth in cobol+db2 pgm we can resolve this -311 sql code..

if wrong correct me..
thakyou...

Is This Answer Correct ?    16 Yes 3 No

Post New Answer

More DB2 Interview Questions

how can u retrieve the data from null values using applicaion program.

3 Answers   TCS,


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


What is the syntax for creating a table in the db2 database?

0 Answers  


Name the lockable units in DB2?

0 Answers  


What is a dbrm in db2?

0 Answers  


Where can you declare a cursor in a cobol-db2 program?

0 Answers  


What is null value in db2?

0 Answers  


Who uses db2?

0 Answers  


Plan is an executable form of sql statements,But what exactly resides inside a Plan. what are the details inside Plan.

2 Answers   IBM,


What are simple, segmented and partitioned table spaces ?

1 Answers   TCS,


What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ?

2 Answers   Cap Gemini,


Do we need cursor for Count(*)?

4 Answers   iGate,


Categories