Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 4/28/2026
Public
Document Table of Contents

OPEN: LEADING_ZERO Specifier

The LEADING_ZERO specifier sets the default I/O leading zero mode for duration of the file connection. It takes the following form:

LEADING_ZERO = lzmode

lzmode

Is a scalar default character expression that evaluates to one of the following values:

'PROCESSOR_DEFINED'

Sets the leading zero edit mode to a mode determined by the default settings of the processor.

'PRINT'

Sets the leading zero edit mode to print optional leading zeros in formatted numeric output.

'SUPPRESS'

Sets the leading zero edit mode to suppress the printing of optional leading zeros in formatted numeric output.

The default leading zero mode is 'PROCESSOR_DEFINED'.

You can only use this specifier for a formatted I/O connection. It is ignored for input.

The leading zero editing mode is an overridable mode. It can be temporarily changed for a WRITE statement by the LEADING_ZERO= specifier in the I/O control list or by the corresponding LZ, LZP, or LZS edit descriptors in the format specified in the I/O control list.

See Also