View previous topic :: View next topic
|
Author |
Message |
ssk1711
New User
Joined: 16 Jun 2008 Posts: 40 Location: bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Also, since you're using ISPF, you need to start ISPF for your batch TSO session using the ISPSTART command. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Sigh.
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|