Schau Dir mal die skalare Funktion INTERPRET an, ob Du damit weiterkommst
https://www.ibm.com/docs/en/i/7.5?to...ions-interpret