Character Conversion (MCx)

Top  Previous  Next

 

The character conversion codes perform various character based conversions.

 

MCADelete all non-alphabetic characters
MC/ADelete all alphabetic characters
MCANDelete all non-alphanumeric characters
MC/ANDelete all alphanumeric characters
MCLConvert to lower case
MCNDelete all non-numeric characters
MC/NDelete all numeric characters
MCPReplace non-printing characters by dots
MCTCapital initial all words (see below)
MCUConvert to uppercase

 

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