Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to use ISPEXEC, ISRSUPC in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
ssk1711

New User


Joined: 16 Jun 2008
Posts: 33
Location: bangalore

PostPosted: Tue Jul 01, 2008 7:48 pm    Post subject: How to use ISPEXEC, ISRSUPC in batch
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
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3544
Location: Brussels once more ...

PostPosted: Tue Jul 01, 2008 7:52 pm    Post subject:
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
Moved: Tue Jul 01, 2008 8:44 pm by superk From CLIST & REXX to TSO/ISPF
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Tue Jul 01, 2008 8:45 pm    Post subject: Reply to: How to use ISPEXEC, ISRSUPC in batch rexx
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

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3304
Location: Charlotte,NC USA

PostPosted: Tue Jul 01, 2008 8:55 pm    Post subject: Reply to: How to use ISPEXEC, ISRSUPC in batch
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: 3544
Location: Brussels once more ...

PostPosted: Wed Jul 02, 2008 12:51 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1