Re: COMP-3 Questions
- From: "Michael Mattias" <michael.mattias@xxxxxxx>
- Date: Thu, 14 Sep 2006 12:16:33 GMT
Regarding which compiler or what error I was seeing, I'm not using any
COBOL compiler. We are developing a product where if a customer
receives a data file which is defined by a COBOL copybook, our goal is
to generate everything you need to load this data into a database on
the same day.
Cannot be done without knowing the compiler and/or knowing if the elementary
items are BYTE or WORD aligned.
For one thing, "COMP <anything> is implementor-defined, meaining each
compiler vendor can make "COMP-3" any format he wants. (vs say,
PACKED-DECIMAL or BINARY, which are standard usage clauses).
For another, even with standard usage, vendors may align - or offer
alignment- options which have the net effect of adding "slack" or "pad"
bytes to a record. Not to mention, the handing of "OCCURS DEPENDING ON" may
be subject to compiler directives.
You can dig up a little more info with these free downloads:
http://www.flexus.com/ftp/cobdata.zip
http://www.flexus.com/ftp/cobfd.zip
Currently our product works for Oracle and SQL Server ...
the SQL*Loader control file...
FWIW, the above free downloads were some of the credited source material for
Jonathan Gennick's O'Reilly publication "Oracle SQL*Loader: the Definitive
Guide." Good enough for that, should be worth a look for you.
--
Michael Mattias
Tal Systems, Inc.
Racine WI
mmattias@xxxxxxxxxxxxxx
(Author/Contributor of subject files)
.
- References:
- COMP-3 Questions
- From: info2006
- Re: COMP-3 Questions
- From: info2006
- COMP-3 Questions
- Prev by Date: Cobol .DAT backup solution
- Next by Date: Re: Cobol .DAT backup solution
- Previous by thread: Re: COMP-3 Questions
- Next by thread: Re: COMP-3 Questions
- Index(es):
Relevant Pages
|