Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IBM comp field to UNISYS`

Status
Not open for further replies.

thermanson13

Programmer
Sep 5, 2008
1
US
Hello,
We have a data file that was created on an IBM Mainframe that we are trying to use on a Unisys mainframe. COMP-3 fields are converting fine for us but we are having problems with IBM COMP fields. Does anyone know the corresponding data type in Unisys?
 
Comp is stored as Binary.
So, whatever the equivelant of BINARY.
 
Binary fields may be in the reverse byte order in Unisys vs IBM (Big Endian vs Little Endian). You might check the COBOL complier you are using on the Unisys to see if it has a Comp-? type that is compatible with IBM Comp. You could also preconvert the field to DISPLAY.
 
Also some compiler options such as TRUNC may have an effect on the content of such fields.

Only sure way to get them to work with other OS´s and/or other compilers is to convert them to numeric edited fields or DISPLAY.

Regards

Frederico Fonseca
SysSoft Integrated Ltd

FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top