Page History: Thunder Special Fields
Compare Page Revisions
Page Revision: 2016/05/25 08:33
Track pointers are only used by Readers. The Reader will return the start and end position of the particular JSON/XML node.
The extended precision special field is used by a Writer to control the decimal precision for a numeric field containing decimals. When the property is set to “true”, an extended precision field is automatically inserted into the IDS and the original field is converted to an integer definition (with no decimal places). For example, a field with a COBOL declaration of PIC 9(11)V9(2) will convert to two fields:
- One with a declaration of PIC 9(13) to hold all digits in the content (integer and decimal).
- One with a declaration of PIC S9(3) to hold how many decimal positions the value contains (e.g. -3 indicates that there are 3 decimal positions.
The extended precision field is returned by a Reader to indicate how many decimal positions were found in the document.Generating Special Fields to a Separate Area in the IDS
Thunder allows you to control how the special fields are generated into the IDS. By default, they are generated directly above their associated field as shown below.
If desired, Thunder provides a setting to generate the special fields to a separate area in the IDS. This can be set at the Toolset or Handler level.
To generate special fields to a separate area at the Handler level, go to Handler -> Properties -> Code Generation and choose “More Options”
Change the Special field setting to “Generate as a separate structure”.
The result will be that that the special fields will be generated to their own separate 01 level in the IDS.