Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Accessing function return values in ODBC calls

Specify the function return values for an ODBC call by using the RETURNING phrase of the CALL statement.

CALL “SQLAllocEnv” USING BY VALUE Phenv RETURNING SQL-RC
    IF SQL-RC NOT = SQL-SUCCESS
        THEN
            DISPLAY “SQLAllocEnv failed.”
            . . .
        ELSE
            . . .
    END-IF

Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)