The INCDIR compiler option specifies a directory to be added to the search path used to locate include files.
.-NOINCDIR-----------------------. >>-+-INCDIR--(--'directory name'--)-+--------------------------><
Except under batch, the compiler looks for INCLUDE files in the following order:
Under batch, this option is probably best used with the DFT(LOWERINC) option, and it affects only include statements of the form %include x;. For these include statements, an hfs file with the name x.inc will be sought first in the directories specified in this option. If the hfs file is not found, x must be a member of the pds(e) specified in the syslib dd. For include statements of the form %include dd(x);, no hfs file will ever be included: the member x must always be a member of the pds named by the specified dd.