On Fri, 25 May 2012 07:44:31 -0500, McKown, John <[email protected]> wrote:
>I know that I can run the TSO TMP in batch. Using this, I can run a REXX >program which sets up all the ISPF required datasets. I can then invoke >ISPSTART with the CMD(...) option to run another program/CLIST/REXX. In that >program, I can use most of the non-DISPLAY oriented services, such as DIRLIST >or DSINFO. The TSO book on IKJTSOEV only talks about ISPF in the negative, but >mentions display services. So, can I write a batch program which uses IKJTSOEV >to set up a TSO environment. Once I have a TSO environment set, can I directly >invoke ISPF services? > >What I would like to do is to have some simple way in a batch program to >invoke ISPF services such as DSINFO without the "hokeyness" of running the TSO >TMP. And also without invoking ISPSTART and telling it to run a separate >program/CLIST/REXX routine. But I don't think it's possible. Frustrates me no >end. > As others have noted, you have to be "under" ISPF to use ISPF services. But you should be able to start ISPF from your program once it's setup a TSO environment using IKJTSOEV. So you might consider: (a) Invoking IKJTSOEV (b) Using IDENTIFY to create an "alias" (say, for example, XYZ) for an address within your program (c) Invoking ISPSTART (with an appropriate CPPL, etc.) and telling it to invoke XYZ. I'd probably ATTACH it, for safety. At that point, the rest of your code, starting at the XYZ address, is "under" ISPF. -- Walt ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

