The character conversion codes perform various character based conversions.
MCA | Delete all non-alphabetic characters |
MC/A | Delete all alphabetic characters |
MCAN | Delete all non-alphanumeric characters |
MC/AN | Delete all alphanumeric characters |
MCN | Delete all non-numeric characters |
MC/N | Delete all numeric characters |
MCP | Replace non-printing characters by dots |
MCT | Capital initial all words (see below) |
These conversion codes behave identically for both input and output conversion.
The MCT conversion code is implemented differently across various multivalue products. The default behaviour of QM is to match D3 and other Pick style products where the first letter after a non-alphabetic character is converted to uppercase, all others to lowercase. Use of the SPACE.MCT mode of the OPTION command enables the behaviour found in Information style products such as UniVerse whereby letters immediately following a space are converted to uppercase, all others to lowercase. In both modes, the first character of the string is converted to uppercase.
Examples
Data
|
Code
|
Result
|
267PS-A17
|
MCA
|
PSA
|
267PS-A17
|
MC/A
|
267-17
|
267PS-A17
|
MCAN
|
267PSA17
|
267PS-A17
|
MC/AN
|
-
|
267PS-A17
|
MCN
|
26717
|
267PS-A17
|
MC/N
|
PS-A
|
Red pencil
|
MCL
|
red pencil
|
Red pencil
|
MCU
|
RED PENCIL
|
Red pencil
|
MCT
|
Red Pencil
|
123FM456
|
MCP
|
123.456
|
|