Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- From: Louis Krupp <lkrupp@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Jun 2007 04:49:54 -0600
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
.
- Follow-Ups:
- Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- From: kimi
- Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- From: kimi
- Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- From: Michael Mattias
- Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- References:
- Prev by Date: Re: COBOL Standards
- Next by Date: Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- Previous by thread: COMP-1 and COMP-2 resolution on unix (using microfocus)
- Next by thread: Re: COMP-1 and COMP-2 resolution on unix (using microfocus)
- Index(es):
Relevant Pages
|