mfdirlist

Description

mfdirlist is an explicitly-named list of directives used by the cobolasm, bms, cobol, ims and pli tasks, and can either appear inside one of these tasks or as a standalone type.

Parameters

Attribute Description Required
debug If true, specifies that the directives list is associated with a program to be compiled for debugging. Defaults to false. No
refid Makes the mfdirlist instance in effect a reference to another mfdirlist instance.
Note: Note that attributes or nested elements must not be set if refid is specified.
No

Parameters specified as nested elements

directive
Use nested <directive> elements to name each directive in the list.
Attribute Description Required
name The name of the directive. Yes
value The value of the directive. No
directives
Use nested <directives> elements to specify a set of directives to be used by the compiler.
Attribute Description Required
value Set of directives to be used by the compiler. Yes

<directive> and <directives> elements may be used in the same list.

Examples

Specify a number of compiler directives:

<mfdirlist>
    <directive name="dialect" value="MF"/>
    <directive name="charset" value="ASCII"/>
    <directive name="noamode">
</mfdirlist>

Specify a free-format list of compiler directives:

<mfdirlist>
    <directives value="dialect(MF) charset(ASCII) noamode"/>
</mfdirlist>

Specify compiler directives in a referenced mfdirlist elements to associate and compile a COBOL source file for debugging using the cobol task:

<mfdirlist id="cobol_directives" debug="true">
    <directive name="dialect" value="MF"/>
    <directive name="charset" value="ASCII"/>
</mfdirlist>

<cobol srcfile="Program1.cbl" srcdir="${basedir}" desttype="int" destdir="${basedir}/bin" debug="true">
    <mfdirlist refid="cobol_directives"/>
</cobol>