Pathway/iTS Web Client Programming Manual (G06.24+)

Java Import Package Reference
Compaq NonStop Pathway/iTS Web Client Programming Manual520270-001
6-69
Class Pic9P
Parameters
Method getHostLength
Purpose
Returns the number of bytes required to store the NonStop Kernel representation of the
data.
Syntax
public int getHostLength()
Return Value
Returns the number of bytes required to represent the equivalent SCREEN COBOL data
item in the NonStop Kernel.
Method getHostValue
Purpose
Returns the NonStop Kernel representation of the data as a byte array.
Syntax
public byte [] getHostValue()
Description
The byte array does not necessarily represent an actual numeric item. Any arbitrary byte
pattern can be stored in this object with the setHostValue() method. However, if
PIC SP(n)9(m) sign trail new Pic9P (m, -(m+n),
Pic9P.SIGNTRAILING)
PIC SP(n)9(m) sign lead
separate
new Pic9P (m, -(m+n),
Pic9P.SIGNLEADINGSEPARATE)
PIC SP(n)9(m) sign trail
separate
new Pic9P (m, -(m+n),
Pic9P.SIGNTRAILINGSEPARATE)
numDigits
The number of digits in the integer; must be between 1 and 16,
inclusive
scalingFactor
Indicates scaling of digits; must be between -16 and 15,
inclusive; the sum of numDigits and scalingFactor
must be between -15 and 16, inclusive
signFlag
Must be one of PicP.SIGNLEADING, Pic9P.SIGNTRAILING,
PicP.SIGNLEADINGSEPARATE, or
PicP.SIGNTRAILINGSEPARATE
SCREEN COBOL Type Java Type