Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Accessing COBOL fields

The hierarchical COBOL data structure is mapped to a hierarchical class structure.

Consequently, a field <XXX> can be addressed as follows:

Read access:

level01.getLevel02().getLevel03().get<XXX>()

Write access:

level01.getLevel02().getLevel03().set<XXX>()

The construction can be used to achieve high-performance access to deeply nested fields.

Instead of

in.getArray2(1).getLineTab().getLinex(3).getKeyx().setData1
(1,"Value1");
in.getArray2(1).getLineTab().getLinex(3).getKeyx().setData2
(1,"Value2");

the fields can be accessed level by level:

Keyx keyx;
keyx = in.getArray2(1).getLineTab().getLinex(3).getKeyx();
keyx.setData1(1,"Value1");
keyx.setData2(1,"Value2");