First, thaks to everyone that post msgs trying to answer my questions.

I have a weak skill in Lazarus/Pascal if compared with people like you. I can't 
understand why you don't solve the trouble instead of try to send the correct 
msg error.

I would like to give you a suggestion. Here we go:

In COBOL(I bag your pardon) each column name/type of a DB2 table has a host 
variable(as cobol people call it) associated. In the case of TIMESTAMP, the 
associated variable will be declared:

03 <column-name>  PIC X(26). 

(column HREG_DIVDD TIMESTAMP will generate a cobol variable 03 HREG-DIVDD PIC 
X(26).)

The content of this host will come in the format: YYYY-MM-DD HH.MM.SS.UUUUUU -> 
where UUUUUU represents fractions of second. If you see, this format use 26 
bytes in length. Programmers then, code the cobol statements necessary to 
compare the returned value with other variables of mount a value that will be 
put in the DB2 TABLE via a EXEC SQL INSERT or EXEC SQL UPDATE.

Why, instead off try to return the wrong error, you don't try to return the 
value of the TIMESTAMP as "string [26]" format. If you're interested I can send 
you a list of the DB2 tables and the format that cobol program receive them and 
a brief explanation of how you interpert these formats received.

I bag your pardon again if I'm being obvious or fool. It occurs problably 
because I don't understand how Lazarus links with ODBC and ODBC links with DB2 
client.

Best regards

Ricardo

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to