Validation of Elementary Items

The Parse Copybook Data activity requires the binary data of an elementary item to be in full compliance with its definition in a copybook by default. For example, packed decimal data can only have certain values for a sign nibble. Normally, Parse throws an error in case of a violation.

However, this behavior is customizable using the Ignore Invalid Items field on a Parse activity. This setting turns off errors resulting from invalid content in the binary data in an elementary item.

When Ignore Invalid Items is selected:

For example, this copybook defines an unsigned item:

01 ZONED-UNSIGNED PIC 99.

F1E2 (in hexadecimal form) is not valid for this copybook because E is not a valid sign nibble. If Ignore Invalid Items is not selected, this results in a failure. However, if you select Ignore Invalid Items, then the item is quietly ignored and not included in the resulting JSON. However, that parsing does not stop, and any valid items found after an erroneous one are processed and returned.

This setting applies to a wide variety of items, including:

Note: Ignore Invalid Items is not a replacement for Allow Incomplete Records. It is applied to items that have enough bytes in the data. To allow premature end of data than select Allow Incomplete Records.

Special Cases

There are several circumstances under which Ignore Invalid Items is not in effect: