Where prog-name is the COBOL program name.
When you use BIND, to ensure that your application works, the SQL batch script created must be executed against your SQL Server database.
|Used at compile time:||Yes|
|Behavior at run time:||Source file|
See Scope - OpenESQL SQL Compiler Directive Options for more information.
The filename extension for generated bind script files is .sql. For example, if you specify BIND=myprog, the generated bind script file name is myprog.sql.
To update the SQL Server database, run the generated bind script file using sqlcmd or from SQL Server Management Studio.
The generated bind script file contains commands to create a separate stored procedure in the schema specified by your SQL Server connection for each static SQL statement in the program.
If stored procedures from a previous compilation are present in the schema, OpenESQL drops them before creating new stored procedures.