On Mon, Jun 8, 2020 at 2:04 PM Paul Gilmartin <
[email protected]> wrote:

> On Mon, 8 Jun 2020 13:08:44 -0400, Tom Conley wrote:
>
> >On 6/8/2020 12:56 PM, Frank Myers wrote:
> >> Can ISPF services, such as panel display, be called from Python? I know
> they can be called from rexx & TSO clists.
> >
> >Try using Python's equivalent of CALL ISPLINK (use the COBOL and PL/I
> >examples in the ISPF doc).
> >
> Would you expect this to work for ISPF variable sharing?  It depends
> strongly
> on Python's storage model.
>
> You would probably use Python's ability to wrap OS memory buffers.
https://docs.python.org/2/c-api/buffer.html

UNIX is poor at variable sharing but pipes or command substitution can be
> used as an alternative.  I doubt that ISPF is POSIX pipe-savvy.
>
> What does UNIX have to do anything in this specific context?

Bottom line: I can't imagine that you couldn't write a "PyISPF" package
with wrappers for all of the functions.

Question: how you would start your Python program:  via "SELECT"  - REXX
script and bpxwunix() ?  Could that use local spawn?     Maybe you would
need to have a "RUNPY" load module that local spawns /bin/python -c
myprog.py ?
Either way you local spawn, would it matter to ISPF that Python it would be
a different TCB?

Kirk Wolf

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to