From: Harald V. <vo...@in...> - 2002-06-21 14:50:30
|
On Fri, 21 Jun 2002, Iker Etxebarria wrote: > Hi everybody! > > I've done a cobol program that stores information in a postgres Database. > I've problems with number pictures. What number type do you usually use to > store pictures like PIC 9(4)? I'm also using Postgres and I use the NUMERIC type. But I am converting the Cobol data when writing and reading to/from the database. I'd like to use the TinyCobol routines for conversion, which are already there in the TC source. But I found them quite hard to understand and even harder to use (have to build a complicated [at least poorly documented] datastructure), so I wrote my own conversion routines. They work fine for me, but I don't know if they cover all cases. (They do cover PIC S9(..)V9(..) at least.) I can send you the code, if you like. -Harald |