Page 1 of 1

db2 to handle and store default value to output file

PostPosted: Mon Oct 12, 2009 10:51 am
by nnina
In my SQL query there is one null indicator i know this value is always null.I want to store this null value into my output file with default value.i need to know how i can store default value without handling -305 sql code.
Is there any Sql QUERY to handle and store default value to output file?

Can anyone explain me detail about DBRM,PLAN, package and collection.
Following are what is understand in the above
DBRM: During pre-compilation time SQL code extarcted from cobol-db2 program and stored into DBRM.
Package: It contains the DBRM send it to bind plan check security access for authorization.
Plan: It contains executable path and check security access for authorization.
Collection:It contains region to say which DB2 region program is binded.

Please do the needfull.

Re: db2

PostPosted: Mon Oct 12, 2009 10:53 am
by nnina
[quote="nnina"]I my SQL query there is one null indicator i know this value is always null.I want to store this null value into my output file with default value.i need to know how i can store default value without handling -305 sql code.
Is there any Sql QUERY to handle and store default value to output file?

Can anyone explain me detail about DBRM,PLAN, package and collection.
Following are what is understand in the above
DBRM: During pre-compilation time SQL code extarcted from cobol-db2 program and stored into DBRM.
Package: It contains the DBRM send it to bind plan check security access for authorization.
Plan: It contains executable path and check security access for authorization.
Collection:It contains region to say which DB2 region program is binded.

Please do the needfull.

Re: db2

PostPosted: Tue Oct 13, 2009 1:08 am
by dick scherrer
Hello,

i need to know how i can store default value without handling -305 sql code.
Read here about the specifics of the -305 sql code"
http://publibz.boulder.ibm.com/cgi-bin/ ... /2.1.6.113

Can anyone explain me detail about DBRM,PLAN, package and collection.

See if the attached info will clarify. . .

d