Re: COMP-3 Questions



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)




.



Relevant Pages

  • Re: Problems with CLAPACK SVD routines on OS X
    ... I wanted to run this code of yours (I have lapack libraries installed on ... but incomplete type ... So let us what warnings you get from your compiler and send an example ... data file as well and then I will try again. ...
    (sci.math.num-analysis)
  • Re: COBOL file dump...
    ... I think you're off by 1 in the location, since the D indicates minus (a C ... You might want to pick up a good book on COBOL, along with the compiler ... reference for the version that produced your data file. ... > In a file from a COBOL dump, which is in ASCII, one of the fields is ...
    (microsoft.public.sqlserver.programming)
  • Re: help for reading a binary file
    ... You can not expect to read unformatted files written by compiler X with ... Look at the data file with a file editor. ... non-data prefix bytes. ...
    (comp.lang.fortran)
  • Re: HP3000 COBOL copy libraries
    ... The Cobol compiler won't be able to do it so your only solution is to ... search a series of MPE groups in order to find a copylib module. ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Support Open & GCC-COBOL (was: New Cobol compiler written in Cobol)
    ... wrote paul@NOSPAMcode-compiler.com (Paul Robinson) ... PR> I am considering the development of a Cobol compiler itself written ... Since the efforts for a free COBOL compiler mentioned above are ...
    (comp.lang.cobol)