Skip to main content

Datatypes

  • January 27, 2015
  • 1 reply
  • 0 views

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

1 reply

Chris Glazier
Forum|alt.badge.img+2

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.