ISRSUPC in Foreground mode

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
veerabadri
Member
Posts: 1
Joined: Mon Mar 21, 2011 7:22 pm

ISRSUPC in Foreground mode

Post by veerabadri » Tue Mar 22, 2011 11:51 am

I'm trying to use ADDRESS LINKMVS to call the Search-For Utility in Foreground mode. Please find below the code snippet:

ADDRESS TSO "ALLOC FI(OUTDD) DA('"<DSName1>"') SHR"
ADDRESS TSO "ALLOC FI(NEWDD) DA('"<DSName2>"') SHR"
ADDRESS TSO "ALLOC FI(SYSIN) DA('"<DSName3>"') SHR"

ADDRESS LINKMVS ISRSUPC SRCHCMP

ADDRESS TSO "FREE F(NEWDD)"
ADDRESS TSO "FREE F(SYSIN)"
ADDRESS TSO "FREE F(OUTDD)"


The above code works fine and returns the control back to my REXX routine. But for the searches which takes a longer time, e.g., NEWDD containing a lot of members to be searched (or) SYSIN dataset contains multiple search strings, I'm not getting the control back to my REXX routine and finally the Mainframe session gets automatically disconnected. I tried running the same in batch mode, and ended with S322 abend. Can someone suggest a solution to handle this scenario. I cannot go for batch mode, as it even consumes a lot of time for such searches. Can you please tell me if I'm missing something.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Mar 23, 2011 1:54 pm

it makes little sense to tie-up a terminal with a long search.
actually, it is really stupid.

you received an S322 from your batch job because you submitted the job with an incorrect CLASS.

you will need to contact your site, because they are the only ones who can tell you what your site's CLASSes are.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

User avatar
DFSHDC40
Member
Posts: 4
Joined: Mon Mar 21, 2011 4:11 am
Location: IMS.SDFSRESL

Post by DFSHDC40 » Thu Mar 24, 2011 6:17 am

Noise ...
x-posted to ibmmainframeforum
[ at least have the manners to say you have cross-posted]
If the code hasn't been changed, why is the LKED date today?

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others