ISRSUPC in Foreground mode



IBM's Command List programming language & Restructured Extended Executor

ISRSUPC in Foreground mode

Postby 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.
veerabadri
 
Posts: 1
Joined: Mon Mar 21, 2011 7:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ISRSUPC in Foreground mode

Postby enrico-sorichetti » Tue Mar 22, 2011 11:55 am

I cannot go for batch mode,

why not???

if the process takes a long time no reason to have the TSO session locked
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: ISRSUPC in Foreground mode

Postby NicC » Tue Mar 22, 2011 7:21 pm

Try running against subset of members - even if you have to manually create a temporay input PDS.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: ISRSUPC in Foreground mode

Postby prino » Wed Mar 23, 2011 12:45 am

veerabadri wrote:... I tried running the same in batch mode, and ended with S322 abend. ...


Ask your support for another jobclass, one that allows you to run jobs that take more time.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post