My Oracle Support Banner

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 SEPTEMBER 08, 2023

Applies to:

Oracle Tuxedo Mainframe Adapter for SNA - Version 11.1.1.2.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
Or
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

Goal

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.
 

Solution

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
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.