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

Java Import Package Reference
Compaq NonStop Pathway/iTS Web Client Programming Manual520270-001
6-49
Class ScobolGroupType
Parameters
Example
The following is an example SCREEN COBOL group data item:
01 CURRENT-TIME.
05 TIME-AT-START PIC 9(8).
05 DATE-AT-START PIC 9(8).
05 TIME-NOW PIC 9(8).
The corresponding Java code for this gorup data item is as follows:
class c_CURRENT_TIME extends ScobolGroupType {
Pic9 TIME_AT_START;
Pic9 DATE_AT_START;
Pic9 TIME_NOW;
public c_CURRENT_TIME() {
TIME_AT_START = new Pic9(8,Pic9.DISPLAY,Pic9.UNSIGNED);
addScobolData(TIME_AT_START);
DATE_AT_START = new Pic9(8,Pic9.DISPLAY,Pic9.UNSIGNED);
addScobolData(DATE_AT_START);
TIME_NOW = new Pic9(8,Pic9.DISPLAY,Pic9.UNSIGNED);
addScobolData(TIME_NOW);
}
public int getHostLength() {
return(24);
}
public void setInitValue() {
}
}
c_CURRENT_TIME CURRENT_TIME ;
Method getHostLength
Purpose
Returns the number of bytes required to store the NonStop Kernel representation of the
data in the group.
Syntax
public abstract int getHostLength()
Return Value
Returns the number of bytes required to represent the data item in the NonStop Kernel.
ScobolDataObject
An object of type ScobolType in the group that that is being
added.