Hello,
I hope you are well.
I have Python 3.12 and ZOAU 1.3.1 installed on my Z/OS and I read the tutorial "Using Python with JCL & Rexx - IBM Z and LinuxONE Community".
I tested the different examples.
For the first example (hello.py + pyjob.jcl), I had no issues.
My problem occurred when I launched the second part (dd.py + pyjob.jcl) with the file IBMUSER.JCL.DEMO.DD.
I received an RC=256 and the message: SyntaxError: Non-UTF-8 code starting with '\xb1' in file /u/ibmuser/jcl/dd.py on line 1, but no encoding declared; see https://peps.python.org/pep-0263/ for details.
I tried to put # -*- coding: utf-8 -*- at the beginning of the file, but I still have the same issue.
Do you know how I can solve this encoding issue?
Best regards,
Bruno LAURENT
------------------------------
Bruno LAURENT
------------------------------