| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
antonrino.b
Joined: 10 Jan 2006
Posts: 74
Location: Germany
|
| Posted: Wed Mar 22, 2006 8:23 pm Post subject: Running REXX pgm having ispexec in Batch mode |
|
|
Hi all,
I have a REXX program which has ispexec statements.
Code: "ispexec lmminit ......"
It works fine, if i run the rexx pgm online. But if i run the same REXX pgm in batch, ispexec statement returns a return code of 20.
Why is it so?
Can anyone help me in running the program successfully in batch?
Thanks and Regards,
Antu |
|
| Back to top |
|
superk
Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA
|
| Posted: Thu Mar 23, 2006 2:10 am Post subject: Re: Running REXX pgm having ispexec in Batch mode |
|
|
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.
For more details, see this chapter 2.13 ISPF Services in Batch Mode from the z/OS V1R7.0 ISPF Dialog Developer's Guide. |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|