z/TPF

z/TPF

z/TPF

The z/TPF group is dedicated to sharing news, knowledge, and insights about the z/TPF product family. Consisting of IBMers and users, this community collaborates to advance the potential of high-volume, high-throughput transaction technology.

 View Only

Pragma pack support for tpfrestgen (PJ46782)

By Abigail DeSantis posted Thu June 16, 2022 10:14 AM

  

When the tpfrestgen utility was run, the C structures were generated unpacked, and the subsequent DFDL reflected this unpacked structure.  This enhancement (PJ46782) allows users to specify whether they want to generate packed structures with tpfrestgen. Add the desired alignment when running the utility, and the pack size will be added to the C header files and used when generating the DFDL. Now an application developer can use the REST generated artifacts with the desired data alignment without having to update the generated headers afterwards and then manually generate the DFDL.

To use the pack option, add -p <size> to the tpfrestgen command. If you use -p without a size, the structures with be packed with the default size. If you do not include -p in your command, the structures will be generated unpacked.

For more information about APAR PJ46782, see the APEDIT or review our documentation in the Knowledge Center.

0 comments
7 views

Permalink