IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to use ISPEXEC, ISRSUPC in batch


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ssk1711

New User


Joined: 16 Jun 2008
Posts: 40
Location: bangalore

PostPosted: Tue Jul 01, 2008 7:48 pm
Reply with quote

I'm using the command

ADDRESS ISPEXEC "SELECT PGM(ISRSUPC)" ,
"PARM(SRCHCMP,ANYC,NOSUMS,LMTO)"

to search given string in a PDS and put in output file. This command is working fine when I execute the rexx in online mode, using 'EXEC' command.

But when I am using the above command in another rexx program which is executed by JCL in batch mode, I am getting error during execution of this ISPEXEC command.

MY JCL to execute rexx pgm (IAT3) looks like this:

//REXEC EXEC PGM=IKJEFT01,COND=(0,NE)
//OUTDD DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
EX 'userid.TEST.EXEC(IAT3)'
//*


The error looks like this:
132 *-* ADDRESS ISPEXEC "SELECT PGM(ISRSUPC)" , "PARM(SRCHCMP,ANYC,NOSUMS,LMTO)"

+++ RC(-3) +++

Could anybody help me in using the above ISPEXEC search command in batch rexx.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 01, 2008 7:52 pm
Reply with quote

You are executing an ISPF instruction and as such need to allocate the required ISPF libraries to your JCL.

ISRDDN will tell you the libraries that you need.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jul 01, 2008 8:45 pm
Reply with quote

Also, since you're using ISPF, you need to start ISPF for your batch TSO session using the ISPSTART command.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jul 01, 2008 8:55 pm
Reply with quote

Sigh. icon_rolleyes.gif

I wonder how many times it'll have to be pointed out that the Terminal Monitor Program (TMP) IKJEFT01 is batch TSO, not batch ISPF, before everyone gets into the habit of either NOT using ISPF services in batch or creating/using a standard PROC with all of the proper ISPF library definitions.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 02, 2008 12:51 pm
Reply with quote

Yeah, it took a couple of hours to write an exec that extracts all the ISPF info from the current session and to build that into a batch PROC for future ISPF. Always one of the first things to run after arrival at a new site.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Batch install term/printer CICS 2
Search our Forums:

Back to Top