We are successfully using standalone Python and Python API in z/OS 2.2 except one thing. In standalone Python print() statements produce output that is correctly displayed on a screen (thanks to _BPXK_AUTOCVT=ON). However when we use API (with the same environment variables exported) the output from print() statements appears to be in ASCII.
When this happens the stderr contains a line
tput: unknown terminal “/pgm/u/myHomeDir”
Our application is compiled as EBCDIC and switches environment to ASCII before using any API calls.
Any idea what can be done to make print statements work?
Thank you
Best regards
Jacob