Support for assembler data types
Elemental assembler data types are mapped to field converter classes in the com.ibm.jzos.fields package. The IBM® JZOS Toolkitprovides field converter classes for mapping byte array fields into Java data types.
DS Citems are mapped toStringField. The stringtrim argument to the RecordClassGenerator class determines trimming behavior.DS A, DS F, DS H, DS R, DS S, DS V, DS Y, DS Xitems (length less than or equal to four bytes) are mapped toBinaryAsIntField.DS B, DS Xitems (length greater than or equal to four bytes) are mapped toByteArrayField.DS E, DS D, DS Litems are mapped toIbmFloatFieldorIbmDoubleField, based on length.- Binary floating point numbers (
DS EB, DS DB, DS LB) are not supported and are mapped toByteArrayField. DS Pitems are mapped toPackedDecimalAsIntFieldorPackedDecimalAsLongField, depending on length.- DS Z items are mapped to
ExternalDecimalAsIntFieldorExternalDecimalAsLongField, depending on length.- DS Z items are, by default, generated as signed variables e.g.
AssemblerDataTypeFactory.getExternalDecimalAsIntField(int,true); - setting the gensignedzoned argument to false will cause the variable to
be unsigned, e.g.
AssemblerDataTypeFactory.getExternalDecimalAsIntField(int,false);
- DS Z items are, by default, generated as signed variables e.g.
Current limitations
Assembler labels can contain symbols that are not valid in Java names. The following conversions are performed during code generation:
- @ is mapped to the string _at_
- # is mapped to the string _hash_