In DB2 for z/OS (MVS), if the length specified in the SUBSTR function (5) exceeds the actual length of the string ('MVS', which is 3), the resulting string is padded with single-byte blanks to meet the requested length. This results in 'MVS ' (with two trailing spaces).