On Thu, 7 Mar 2019 15:45:14 +0200, Steff Gladstone <[email protected]> wrote:
>But if I TSOEXEC CALL the Cobol I/O routine, will it retain the context >between calls? Won't the DCBs and ACBs and working storage be reinitialized >on every call? You need to TSOEXEC CALL the main COBOL program. It must run isolated, so it has a clean TSO/E environment. And you program will not be able to use ISPF. Or, you need to use a technique like UNIX System Services fork() to invoke part of your program in a separate, communicating address space that will run only the I/O services you need and pass data back and forth using UNIX services. Or you need to design some other form of client/server address space. (Strictly speaking, if you have properly defined the PROGRAM ** profile and everything the user needs to run is coming from a program-controlled library, then you might find that the user's environment remains clean, and you don't need the TSOEXEC. But many TSO users run their own stuff, or things that you haven't inspected and "blessed" by defining them in PROGRAM **, and so most TSO environments (in my experience) become dirty and need either a logoff/logon or use of TSOEXEC to allow Program Access to Data Sets to work.) -- Walt ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
