Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

ONSOURCE

ONSOURCE returns a character string whose value is the contents of the field that was being processed when the CONVERSION condition was raised. It is in context in an ON-unit (or any of its dynamic descendants) for the CONVERSION condition or for the ERROR or FINISH condition raised as the implicit action for a CONVERSION condition.

Read syntax diagramSkip visual syntax diagram>>-ONSOURCE-+----+---------------------------------------------><
            '-()-'
 

If ONSOURCE is used out of context, a null string is returned.

If the source in a failed conversion is a COMPLEX value, then ONSOURCE() will show only the REAL or IMAG half of that value


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)