Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

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
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, 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: 4648
Location: Raleigh, 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: 8593
Location: Back in jolly old England

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
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 Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us