Important: When compiling from within
Visual Studio, set these directives in the
Additional Directives field on your project's COBOL properties tab.
ACCESS
Enables deployment of application code and SQL by updating the SQL Server database at compile time. Creates a stored procedure at compile time for most static SQL statements.
BIND Enables deployment of application code by generating an SQL batch script that can be used with sqlcmd or SQL Server Management Studio to update the SQL Server database.
CHECKCALLPARAMS
Directive automatically set by DIALECT=MAINFRAME. It evaluates the parameters on a stored procedure call to determine if they are input or output.
DATE
Specifies the explicit date format to use when date values are returned from SQL Server date columns in character output host variables.
DBRMLIB Enables generation of DBRMs containing the static SQL statements from COBOL programs, mimicking mainframe-style binding.
DESCRIBEDTCHAR
DATE, TIME, and DATETIME columns are suitable for PIC X(n) character host variables or DATE, TIME, and TIMESTAMP SQL TYPEs.
DESCRIBEDTREC
DATE, TIME, and DATETIME columns are suitable for the DATE, TIME, and TIMESTAMP-RECORD SQL TYPEs in ODBC format record structures.
DESCRIBEVARCHAR49
VARCHAR columns are suitable for VARCHAR host variables with level 49 sub-fields for length and data.
DETECTDATE
Allows datetime values for PIC X character input host variables in a mainframe DB2 application to be in different formats than those supported by SQL Server.
DIALECT
Enables SQL dialect compatibility features for HCOSS in the OpenESQL preprocessor, turning on automatic mapping of functions, special registers, data types, and all other automatic HCOSS conversions, and enabling the use of DIALECT statement prefixes. Converts DB2 SQL statements that are not compatible with SQL Server into equivalent T-SQL statements in most cases.
IGNORESCHEMAERRORS
Suppresses compile-time errors resulting from missing schema objects.
NESTEDCLRDEBUG
Enables debugging of nested stored procedure calls. Without this parameter, it is not possible to debug stored procedures that return result sets. This is due to limitations in the Microsoft SQL Common Language Runtime. NESTEDCLRDEBUG instructs the preprocessor to discard any result sets returned from nested stored procedure calls, thus making debugging possible.
OPTIMIZESPCURSORS
For SQL CLR stored procedures, opens forward read-only cursors as firehose cursors, and when subsequent cursors are opened, reads the remainder of the result set into memory to optimize performance.
PROCOB
Sets the DATE SQL compiler directive option to EXTERNAL.
PROMOTE
Saves generated DBRMs to the shared HCOSS DBRM library.
QUALIFIER
Qualifies unqualified table and view names.
RSLOCATORS
Enables non-COBOL client applications to read result sets from COBOL stored procedures that have been migrated from the mainframe and that use SQL(DIALECT=MAINFRAME).
SPCOMMITONRETURN
Commits work done by a stored procedure when it returns to the calling application.
SPDISPLAY
Determines where COBOL DISPLAY information can be accessed.
SQLCLRTRANS
Emulates mainframe behavior by substituting SQL Server save point operations for COMMIT and ROLLBACK when building both client applications and stored procedures.
TIME
Specifies an explicit time format to use when time values are returned from SQL Server time columns in PIC X character output host variables.