Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Running REXX pgm having ispexec in Batch mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Mar 22, 2006 8:23 pm    Post subject: Running REXX pgm having ispexec in Batch mode
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Mar 23, 2006 2:10 am    Post subject: Re: Running REXX pgm having ispexec in Batch mode
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us