Language file keyword descriptions

When you specify keywords in a language file, ensure you specify one keyword per line.

With the default behavior, words must start with an English alphabetic character, number, or underscore. The start character and delimiter character keywords that follow, control changing this behavior.

Start character keywords

The following examples demonstrate how to specify start keywords, as well as, how to exclude start characters.
START='cccc'
In addition to the default start characters (any alphabetic character, a-z, A-Z), specify additional characters to be considered as start characters.
Example 1: Specify the percent (%) and at "@" characters as additional start characters
START='&@'
Example 2: Recognize other characters, such as, umlaut characters and accented characters, as start characters

START='âäàáãåçñéêëèíîïìðýôöòóõûüùúÿÂÄÀÁÃÅÇÑÉÊËÈÍÎÏÌÐÝÔÖÒÓÕÛÜÙÚ'

XSTART='cccc'
Exclude start characters.
Example: Create an index of capitalized words excluding lowercase characters
XSTART='abcdefghijklmnopqrstuvwxyz'

Delimiter character keywords

The following examples demonstrate how to specify delimiter keywords in your search, as well as, how to exclude delimiter characters.

DELIM='cccc'
In addition to the default delimiter characters (any character that does not represent an alphabetic, numeric, or underscore character), specify additional characters to be considered as delimiter characters.
Example: Interpret the underscore (_) character as a delimiter
DELIM='_'
XDELIM='cccc'
Exclude delimiter characters.
Example 1: For COBOL source, do not consider the minus sign (-) as a delimiter character
XDELIM='-'
Example 2: For JCL, do not consider a period (.) as a delimiter character
XDELIM='.'
Example 3: Recognize other characters, such as, umlaut characters and accented characters, as part of the word
XDELIM='âäàáãåçñéêëèíîïìðýôöòóõûüùúÿÂÄÀÁÃÅÇÑÉÊËÈÍÎÏÌÐÝÔÖÒÓÕÛÜÙÚ'
XEND='ccc'
Exclude specific characters from the end of a string.
Example: For JCL, a period can occur as an intermediate character in a data set name, but not at the end
XEND='.'

General keywords

General keywords enable you to specify special cases such as the following:
  • Exclude words from being indexed.
  • Provide a minimum length for a word.
  • Use case-sensitive word matching.
  • Process duplicate member names.
LANGAUTO=YES
Specify this keyword to activate automatic word detection.
XWORD=(word1,word2,...wordn)
Exclude words from being indexed. This keyword can be used for words that occur frequently.
Example: Exclude the words IF, THEN, DO, and END for the REXX language
XWORD=(IF,THEN,DO,END)
MARgins=(start,end)
Specify a start and ending column.
Example: For COBOL, process word starting from column 8 to column 72
MAR=(8,72)
MIN=n
Use this keyword to provide a minimum length for a word.
Example: Remove simple count variables that are one byte long such as, I, J, K.
MIN=2
CASE=YES
Specify CASE=YES to produce case-sensitive word matching for the index. The default is NO.
DUP=YES
Specify DUP=YES to process duplicate member names. The default is NO.
Example 1: JCL
START='&'
XDELIM='.&#' 
XEND='.' 
DUP=YES 
XWORD=(DD,DSN) 
Example 2: COBOL
XDELIM='-'
XEND=’-‘'
MAR=(8,72)
XWORD(IF,PERFORM,CALL)
Example 3: Assembler
START='@&'    
XDELIM='@'    
MIN=2         
MAR=1,72     
Example 4: Treat numbers as words
The default behavior is to exclude numbers as start characters therefore excluding numbers as words. To recognize numbers as words, and allow for intermediate decimal points, specify the following:
START='0123456789'    
XDELIM='.'  
XEND=’.’  
Sample language file members provided in hlq.SFMNSAM1
Table 1. Sample language file members provided in
Member name Description
FMNXASM Assembler
FMNXASMN Assembler with numbers
FMNXAUDC LANGAUTO=YES DUP=YES CASE=YES
FMNXAUTC LANGAUTO=YES DUP=NO CASE=YES
FMNXAUTD LANGAUTO=YES DUP=YES CASE=NO
FMNXAUTO LANGAUTO=YES DUP=NO CASE=NO
FMNXC C or C++
FMNXCCAS C or C++ with case sensitive words
FMNXCBL COBOL
FMNxCBLN COBOL with numbers
FMNXLST CLIST
FMNXJCL JCL
FMNXMSGS ISPF messages
FMNXPLI PL/I
FMNXPLIN PL/I with numbers
FMNXPNLS ISPF panels
FMNXREXX REXX
FMNXSKEL ISPF skeletons