The calculation is performed based on the primitive type (either UML default primitive types or the ones provided) and the extra characteristics of the (optional) stereotype.
| Primitive type | COBOL-dependent type |
|---|---|
| Binary | VARCHAR |
| Boolean | X |
| Date | DATE |
| Integer | S9(18) |
| Currency | S9(18) |
| Float | S9(16)V9(2) |
| X(32) | |
| String | X(32) |