
The midc function extracts a specified number of characters from the middle of a text value.
?where;
m is the starting position in the text value and
n is the number of characters to extract.
A text value n characters in length.
midc(FIELDNAME, m, n) returns n characters beginning at character position m (inclusive). Spaces and punctuation symbols are included.
Returns: aEa
midc( "Club ParaDEASE" , 6, 3)
Returns: Par
Returns: Two characters beginning at the fourth character position in the LAST NAME field for every record that is processed. If a record contains the value Birnbaum in the LAST NAME field, the function returns nb.