Oracle Audio Technologies Oracle Tuxedo User Manual

Page 27

Advertising
background image

T r a n s l a t i n g D a t a w i t h T M A T C P g a t e w a y

Oracle Tuxedo Mainframe Adapter for TCP CICS User Guide

2-9

Note:

Oracle Tuxedo provides a field type named dec_t that supports decimal values within

VIEW

s. The TMA TCP gateway product translates these fields into machine independent

representations of packed decimals. For example,

dec_t(m,n)

becomes

S9(2*m-(n+1))V9(n) COMP-3

. Therefore, a decimal field with a size of 8,5

corresponds to

S9(10)V9(5) COMP-3

.

The following table summarizes the translation rules between C and IBM/370 data types.

LONG

Translated to S9(9) COMP

FLOAT

Translated to COMP-1

DOUBLE

Translated to COMP-2

Table 2-3 Translation Rules Between C and IBM/370 Data Types

Remote Data Type

Description

View Field Type/Length

PIC X(n)

Alpha-numeric Characters

string / n

PIC X

Single Alpha-numeric Character

char

PIC X(n)

Raw Bytes

carray / n

PIC X

Single Numeric Byte

carray / 1

PIC S9(4) COMP

16-bit Integer

short

PIC S9(9) COMP

32-bit Integer

long

COMP-1

Single-precision Floating Point

float

COMP-2

Double-precision Floating Point

double

PIC

S9((m+(n+1))/2)V9

(n)

COMP-3

Packed Decimal

dec_t / m,n

Table 2-2 Data Translation Rules

Field Type

Translation Rules

Advertising