L138: The second or third argument of the SUBSTR function is out of range.

See the section Error SQLCODES in your IBM Database Messages and Codes manual, message -138, for information.
Restriction: This topic applies to Windows environments only.