Sorry, Python is not one of the languages I work with.
Kind regards,
-Steve Comstock
On 10/2/2024 9:05 AM, Bruno LAURENT via IBM TechXchange Community wrote:
> 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
> ------------------------------
>
>
> Reply to Sender :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6127&MID=422164&SenderKey=544193d1-7b58-46fc-b9f6-9722cdd22451>
> Reply to Discussion :
https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6127&MID=422164>
>
>
> You are subscribed to "Educator Hub User Group" as
steve@trainersfriend.com. To change your subscriptions, go to
http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to
http://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=cf11c6c4-77bb-4295-8452-018c335c32b9&sKey=KeyRemoved&GroupKey=0b911a85-2e64-4f55-931d-9a357c1fce4b.
Original Message:
Sent: 10/2/2024 11:05:00 AM
From: Bruno LAURENT
Subject: Using Python with JCL & Rexx
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
------------------------------