Optimize HP COBOL II/XL Data Types

Optimizing HP COBOL II/XL data t ypes requires recognition of the follo wing considerations: 32-bit binary in tegers are desirable. PIC S9(9) COMP SYNC speci￿cation is optimal.

Relying on default speci￿cations is undesirable. Y ou must specify COMP to get a binary integer. Otherwise, it defaults to a decimal in teger. You must specify SYNC to guarantee word alignment.

Decimal validation adds o verhead.

Signed numeric ￿elds are preferable to unsigned n umeric ￿elds.

Optimize HP COBOL II/XL Data Types

Optimizing HP COBOL II/XL data t ypes requires recognition of the follo wing considerations: 32-bit binary in tegers are desirable. PIC S9(9) COMP SYNC speci￿cation is optimal.

Relying on default speci￿cations is undesirable. Y ou must specify COMP to get a binary integer. Otherwise, it defaults to a decimal in teger. You must specify SYNC to guarantee word alignment.

Decimal validation adds o verhead.

Signed numeric ￿elds are preferable to unsigned n umeric ￿elds.

Optimizing a Program 5-9