INCDIR

The INCDIR compiler option specifies a directory to be added to the search path used to locate include files.

Read syntax diagramSkip visual syntax diagram
   .-NOINCDIR-----------------------.   
>>-+-INCDIR--(--'directory name'--)-+--------------------------><

directory name
Name of the directory that should be searched for include files. You can specify the INCDIR option more than once and the directories are searched in order.

Except under batch, the compiler looks for INCLUDE files in the following order:

  1. Current® directory
  2. Directories specified with the –I flag or with the INCDIR compiler option
  3. /usr/include directory
  4. PDS specified with the INCPDS compiler option

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.