AFAIK, there is not a separate set of IBM documentation for the python language 
as you normally expect for an IBM language product (i.e., no "Language 
Reference" or "Programmer's Guide" manuals).  You can however use the normal 
web-based python language documentation you would use for any other platform.  
Also AFAIK, the z/OS python implementation includes the entire python standard 
library.

As for examples, try signing up for the IBM Zxplore student website 
(https://ibmzxplore.influitive.com).  After you complete a sufficient number of 
the fundamental and advanced challenges, there are at least one or two 
challenges that require you to use python to complete the challenge on their 
z/OS system.

Once you get to complete the USS1 challenge and are allowed to login to the 
Zxplore z/OS Unix environment, you will have access to the python3 installed on 
their LPAR and you can experiment with it yourself (carefully! The disk space 
for students there is quite small, so no production volume data uploads 
please!).

However, there are no python virtual environments allowed on Zxplore's z/OS 
system (package virtualenv/venv is not installed), so you can't install any 
python packages besides what the administrators provide in the global 
site-library.

I will say that having the default shell of bash on the Zxplore z/OS Unix 
system is extremely helpful for exploring python there.  If you don't have bash 
installed on your z/OS system, I highly recommend it.

I personally have not yet tried to use python from JCL, only from the z/OS Unix 
shell.  You can invoke it from JCL using BPXBATCH or suitable substitute though.

Peter

From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Samuel Alejandro Díaz Chávez
Sent: Sunday, November 26, 2023 6:46 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Python on zOS


Good afternoon



Does anyone have any documentation on using Python on z/OS? And some examples?

--


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to