For Translation Of A Field 'long' From Unix To Mainframe : How To Specify The Length Of The Result 'COMP-5' Field
(Doc ID 1507404.1)
Last updated on MAY 10, 2021
Applies to:Oracle Tuxedo Mainframe Adapter for SNA - Version 126.96.36.199.0 and later
Information in this document applies to any platform.
Summary of the problem.
- a "long" field in a C program on unix 32 bits system is stored in 4 bytes
- a "long" field in a C program on Unix 64 bits system is stored in 8 bytes
These fields can be translated to mainframe cobol program by :
S9(9) COMP-5 ==> 4 bytes
S9(18) COMP-5 ==> 8 bytes
Until RP010, the translation depends on Unix system :
32 bits Unix system : long is translated to S9(9) COMP-5
64 bits Unix system : long is translated to S9(18) COMP-5
Define the length of COMP-5 field on Cobol mainframe program when translated from 'long' field on Unix system regardless the size of the memory used on Unix system.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document