Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
If you are using ISPEXEC calls, that means that you are using ISPF Services. If you want to use ISPF services in batch, you need two things -
a TSO session and an ISPF session.
You can start a TSO session in batch by using one of the batch terminal monitor programs (TMP) - IJKEFT01, IKJEFT1A, or IKJEFT1B. These programs require two DD statements: one for the terminal input (SYSTSIN), and one for the terminal output (SYSTSPRT).
You can start an ISPF session once the TSO session is started by using the ISPSTART command in TSO. The typical format of the ISPSTART command is ISPSTART CMD(%EXECNAME). In addition to the above terminal input and output DD's, you must also allocate all of the required libraries for ISPF using DD statements: Panel, message, skeleton, table, and profile data sets must be preallocated.