Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored proc passing Null values

Status
Not open for further replies.
Jan 4, 2006
1
US
Hi,

Does anyone have a sample of an SP called from COBOL that uses indicator variables to pass nullable parameters?

For example if some calls the SP uisng something like:

EXEC SQL CALL PROC1 :)INOUT1 :INOUT1IND, :INOUT2)

END-EXEC

wHAT WOULD THE SP CODE HAVE?

THANKS IN ADVANCE
 
The same syntax as used in "create table":
INOUT1 char (3)
INOUT2 char (3) NOT NULL

So every paramteter which is nullable should be called with the indicator variable. No difference with tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top