ILE COBOL Language Reference

SIZE Phrase

The SIZE phrase specifies the total size of the date or time item in number of digits. The number of digits must be greater than or equal to the size of the format literal. The size of the format literal is determined by replacing the conversion specifiers with their largest value, and doing conversions, if necessary, to the runtime CCSID. For more information refer to the description of the CCSID parameter for CRTCBLMOD described in the ILE COBOL for AS/400 Programmer's Guide.

The SIZE phrase must be specified for a date or time item when the length of that item cannot be determined at compile time. The compiler cannot determine the size of a date or time item when:

integer-3, integer-4
Integer-3 and integer-4 specify the size of the default date or time item in number of digits. Integer-3 or integer-4 must be specified if the size of the date or time item cannot be determined at compile time. For a date and time item, integer-3 and integer-4 must be equal to or greater than 4. The maximum size of an item of class date-time is 256, if the item has a USAGE of DISPLAY, or 31 for a USAGE of PACKED-DECIMAL.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]