Re: COBOL file dump...

From: Michael D. Long (michael.d.long-nospam_at_comcast.net)
Date: 09/15/04


Date: Tue, 14 Sep 2004 21:20:15 -0400

I think you're off by 1 in the location, since the D indicates minus (a C
would be plus, and F unsigned - but not valid in this case because the S in
the pic indicates a signed value). My interpretation of the value is
+189.22.

You might want to pick up a good book on COBOL, along with the compiler
reference for the version that produced your data file. COMP data types
aren't consistent in storage across all compilers.

-- 
Michael D. Long
"MPF" <abcd@senditon.com> wrote in message 
news:uSZpfurmEHA.2764@TK2MSFTNGP11.phx.gbl...
> <similar message posted in .Net Framework & .languages.vb>
>
> In a file from a COBOL dump, which is in ASCII, one of the fields is 
> defined
> as S9(9) V99 Value +0.
> The value in this location is 0000018922D, which according to the author 
> of
> the source, translates to 00000189224.
>
> I've imported the data into a table and am able to substring (re: 
> intrepret) everything except for the decimal datatypes, as noted above. Is 
> there a way to do this via T-SQL?
>
> Thanks,
>
> Morgan
> 


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: 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: COMP-3 Questions
    ... COBOL compiler. ... receives a data file which is defined by a COBOL copybook, ... Cannot be done without knowing the compiler and/or knowing if the elementary ... You can dig up a little more info with these free downloads: ...
    (comp.lang.cobol)