Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ALLBASE/SQL Advanced Application Programming Guide: HP 3000 MPE/iX Computer Systems > Chapter 5 Using Procedures in Application Programs

Using Dynamic Procedure Parameters

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

You can specify dynamic parameters in a prepared EXECUTE PROCEDURE statement. Dynamic input parameters are passed from host variables or an SQLDA data buffer in the application to procedure parmeters. Dynamic output parameters are passed from procedure parameters to host variables or an SQLDA data buffer in the application. Table 5-2 “When Dynamic Parameters are Passed Between an Application and a Procedure” shows when dynamic parameter values are passed.

Table 5-2 When Dynamic Parameters are Passed Between an Application and a Procedure

Type of ProcessingInput Parameter ValuesOutput Parameter Values
Cursor ProcessingOPENCLOSE
Non-Cursor ProcessingEXECUTE PROCEDUREEXECUTE PROCEDURE

 

The following statement contains three dynamic procedure parameters:

   EXECUTE PROCEDURE ? = InventoryReport (?, ? OUTPUT)

Note that a procedure return status is always an output (only) parameter. Any other dynamic procedure parameter is assumed to be for input only unless OUTPUT or OUTPUT ONLY is specified.

Refer to the ALLBASE/SQL Reference Manual for complete syntax and to the "Using Parameter Substitution in Dynamic Statements" chapter in this manual.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.