Definition: substring
A subset of an alphanumeric field or variable. The substring function in a programming language is used to extract the subset; for example, the expression substr(prodcode,4,3) extracts the three characters starting in the fourth byte location of a product code field or variable.