Skip to main content

I have to insert data into a microsoft sql table, but i dont know how to define following datatypes in my cobol Programm:

uniqueidentifier

datetime

nvarchar

varbinary

bigint

int

I have to insert data into a microsoft sql table, but i dont know how to define following datatypes in my cobol Programm:

uniqueidentifier

datetime

nvarchar

varbinary

bigint

int

Please look in the docs under Data Access as there is an entire section devoted to host variables and data types here:

If you have an existing table you can automatically generate a working-storage copybook defining the host variables for a table by using the OpenESQL Assistant product. Please see the docs for OpenESQL Assistant here: 

Thanks.