Primary pattern

Primary pattern

The primary pattern is used as the first, or primary, value in the language definition File Extensions list. File extensions are used to automatically associate source files with a language definition. For example, if the file extension "cbl" is defined for the COBOL language definition, any file with the "cbl" extension - MORTGAGE.cbl - will automatically be associated with the COBOL language definition and be built as a COBOL language item.

A language definition may encompass multiple file extensions. Additional file extensions should be defined in the Additional patterns field. When you are defining additional file extensions, make sure that each extension identified is unique within the EWM™ repository.

The language definition File Extensions list provides a convenient method to associate source files with language definitions which then determines how a file is to be built. Defining and using file extensions is not mandatory, but it is highly recommended. The alternative to using file extensions is to individually associate each source file with a language definition within the source code management system. The alternative method is tedious to set up and maintain and will result in some extra overhead when a file is processed for a build. Using the alternative method is more appropriate as an override mechanism for specific source files or special situations.

There is a default primary pattern defined for each language type that is populated when the language type is chosen. The default primary patterns for the predefined languages are:

Primary pattern: Language:
asm Assembler
bin Binary
bnd Bind
c C
cpp C++
cob Cobol
easy CA Easytrieve
jcl JCL
lnk Link Edit
pli PL/I
rexx Restructured Extended Executor
oth Other

You can change the default value to a custom value of your own choice, as long as, the value is: alphanumeric and does not include embedded blanks.

The erase button to the right of the primary pattern field allows you to clear the default primary pattern filled in when the language type is chosen.