Hello Albert
Unfortunately the example was not complete:
One code line is added (// <<<<<)
/* no error checking! */
sprintf( stmtStr, "{ CALL test_proc (?,?,?) }" );
retcode = SQLPrepare( hstmt, stmtStr, SQL_NTS );
retcode = SQLBindParameter( hstmt, 1, SQL_PARAM_INPUT,
SQL_C_LONG, SQL_INTEGER, 72, 0,
&a, sizeof(a), &len );
retcode = SQLBindParameter( hstmt, 2, SQL_PARAM_INPUT_OUTPUT,
SQL_C_LONG, SQL_INTEGER, 72, 0,
&b, sizeof(b), &len );
retcode = SQLBindParameter( hstmt, 3, SQL_PARAM_OUTPUT,
SQL_C_LONG, SQL_INTEGER, 72, 0,
&s, sizeof(s), &len );
a = 2;
b = 3; // <<<<< b is also an input parameter
retcode = SQLExecute( hstmt );
Regards Thomas
----------------------------------------------
Dr. Thomas Kötter
SAP AG, Berlin
NW DT MaxDB
MaxDB: all you need!
www.mysql.com/products/maxdb www.sapdb.org
--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]