Use the following keywords to construct your text file. Each keyword must:
The table names also must be uppercase. The patcodes are not case-sensitive.
PATEND indicates the end of the definition text; it must appear after the last table definition.
PATSTART PATTABLE NEWLANGUAGE PATCODE S 144,145,146,147,148,149,150 PATCODE L 230,231,232,233,234,235,236,237,238,239,240,241-,242,243,244,245,246,247,248,249,250,251,252,253,254,255 PATEND
Be mindful of the following items as you define your patcode table.
To establish a default patcode table for a database define the environment variable:
$ gtm_pattern_file=pathname $ export gtm_pattern_file
where filename is the text file containing the patcode table definition, and
$ gtm_pattern_table=tablename $ export gtm_pattern_table
where tablename is the name of the patcode table within the file pointed to by gtm_pattern_file.
![]() | Warning |
---|---|
GT.M performs operations on literals at compile time and the pattern codes settings may have an impact on such operations. Therefore, it is safest to either always compile with the same pattern code settings as those used at runtime. If changes to pattern codes are required at run time, "hide" any patterns used on literal expressions from the compiler (which are uncommon) using XECUTE commands or indirection. |
VIEW "PATLOAD":"pathname"
VIEW "PATCODE":"tablename"
This is equivalent to set ^%PATCODE explained below.
For more information, refer to a??%PATCODE a??in the Utilities Chapter of this manual.
%PATCODE has the following extrinsic entry points:
set^%PATCODE(tn)
sets the current patcode table to the one having the name specified by tn, in the defined file specification.
Example:
GTM>Write $$set^%PATCODE("NEWLANGUAGE") 1
If there is no table with that name, the function returns a false (0) and does not modify the current patcode table.
get^%PATCODE
returns the current patcode table name.
Example:
GTM>Write $$get^%PATCODE NEWLANGUAGE