Pathway/iTS Web Client Programming Manual (G06.24+)
Java Import Package Reference
Compaq NonStop Pathway/iTS Web Client Programming Manual—520270-001
6-93
Class PicN
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
(PIC N) data item in the NonStop Kernel. This will be double the size with which the
data was declared in the SCREEN COBOL program. For example, for a PIC N (10)
item, this method will return 20.
Method getHostValue
Purpose
Returns the NonStop Kernel representation of the alphanumeric data as a byte array.
Syntax
public byte [] getHostValue()
Description
The length of the returned byte array will be the same as that returned by
getHostLength(), which is double the size of the PIC N item.
Return Value
Returns the byte array used to represent the double-byte value in the NonStop Kernel.
This will be a pure byte stream. For example, for PIC N (5), this method will return an
array of 10 bytes.
size
The number of double-byte characters this object can hold
justification
Must be either PicN.LEFTJUSTIFIED or
PicN.RIGHTJUSTIFIED
data
The initial value for this object