The manual SC28-3143-02 I*BM Open Enterprise SDK for Python 3.10* may be
what you want



import zos_util
f = open("//'USER.Z24C.PROCLIB(PYT)'","r")
read_data = f.read()
print(read_data)

gives

Traceback (most recent call last):

  File "/u/tmp/zos/z.py", line 1, in <module>

    f = open("//'USER.Z24C.PROCLIB(PYT)'","r")

FileNotFoundError: [Errno 129] EDC5129I No such file or directory.:
"//'USER.Z24C.PROCLIB(PYT)'"

I've blogged on several Python topics on z/OS ... see here
<https://colinpaice.blog/category/python/>.
I'm currently looking at writing an extension to use fopen etc. and read
datasets, so please contact me offline if you would like more info

Colin

On Sun, 31 Jul 2022 at 00:03, Farley, Peter x23353 <
0000031df298a9da-dmarc-requ...@listserv.ua.edu> wrote:

> I have been looking around on various IBM websites trying to find the IBM
> versions of the normal python language and python standard library
> documentation to answer a few z/OS-specific python questions.
>
> 1.      Does the z/OS implementation of the python language standard
> function "open()" accept z/OS Unix System Services file name format for MVS
> flat and PDS(E) datasets (e.g., "//'MVS.FLAT.FILE'" and
> "//'MVS.PDS(PDSMEM)'")?  (I.E., under the covers does it use the "open()"
> or "fopen()" C library function?)
> 2.      Is the "zos_util" library package available in all versions of the
> z/OS python SDK?
>
> TIA for any RTFM or url's you can point me to.  PDF's of the documentation
> for offline reading would be welcome if they are available.
>
> Peter
> --
>
>
> 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
>

----------------------------------------------------------------------
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