Re: COMP-1 and COMP-2 resolution on unix (using microfocus)



kimi wrote:
HI ppl,
i have migrated the data on mainframe to SOLARIS UNIX.
COMP-1 and COMP-2 is read as junk when the application is
run on this data.
But COMP and COMP-3 data are read fine.

I have Microfocus Server Express 4.0 SP2 installed in my
UNIX system.
I believe This issue has something to do with the way the
operaring system interprets it.
Is there a way in which i can read this COMP-1 and COMP-2
data successfully??

As far as I know, COMP-1 and COMP-2 are floating point. Your mainframe (IBM?) probably uses its own floating point format, and your Sun uses IEEE floating point. The bits are interpreted differently. It's an architecture difference and doesn't have much to do with the operating system.

Depending on the range of your floating point data, you might be able to convert the file on the mainframe so it only uses COMP-3 (packed decimal), or you could try to find a program that will do the conversion on Solaris. You could also write such a program (but you probably wouldn't want to do it in COBOL).

Louis
.



Relevant Pages