Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Writing a data field

To write a data field <XXX> it is necessary to call the method setXXX(). An object of the COBOL data field type is passed as the parameter.

EmployeeRecord out = new EmployeeRecord();
out.setLastName(new PicX("LastName"));

For each COBOL data type, there are additional methods with parameters of the type String, or int and long:

for PicX, PicN:

setXXX(String): out.setLastName("LastName");

for Pic9:

setXXX(int), setXXX(long)