Turns out the problem is with IRXSAY, I can read and write variables using IRXEXCOM. But IRXSAY returns with return code 28 'A language processor environment could not be located'. Unfortunately I was not checking for IRXSAY return codes, as IRXSAY just works, well at least in TSO it does. So now to find an alternative to that.
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN