IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ISRSUPC in Foreground mode


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Badri Jayaveeran

New User


Joined: 22 Mar 2011
Posts: 1
Location: India

PostPosted: Wed Mar 23, 2011 2:04 pm
Reply with quote

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. Can someone suggest a solution to handle this scenario. I cannot go for batch mode, as the entire functionality of my tool is completely online. Can you tell me if I'm missing something.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 23, 2011 2:24 pm
Reply with quote

Quote:
I cannot go for batch mode, as the entire functionality of my tool is completely online. Can you tell me if I'm missing something.


You are just missing the skill of judging wether a process is suited for online/interactive rather than batch implementations

nobody will care to advise how to implement a badly designed process

also no reason to repost the question in hope to get the answers You want, rather than the ones dictated by experience!

learn , when asking, to accept the answers You receive even if You do not like them !
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Mar 23, 2011 2:44 pm
Reply with quote

in the other website where you posted this rookie question,
you mentioned the S322 abend your batch job received
as the reason you cannot run in batch,
but instead must tie-up a tso session for so long that it times out.

as your operations group which CLASSes are available and their CPU time restrictions-

Quote:

as the entire functionality of my tool is completely online


1. foreground in a tso session is not online.

2. another stupid tool to replace ISPF 3.14/15 options.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 23, 2011 4:00 pm
Reply with quote

Dick,

Surely the OP would only get a timeout from TSO if the session was idle for the site specific time limit, which sort of indicates to me that the REXX or whatever is not functioning correctly and is sitting there twiddling its thumbs.

Of course it is the usual case of this is what I am going to do, with no explanation of the whys and wherefors of what actually needs to be done, so having no idea of what the OP wants to do, we can't really help any more
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Mar 23, 2011 6:11 pm
Reply with quote

yeah, the ISRUPC call is taking a long time (exceeded the time limit for a batch job of some class)
and the rexx can do nothing except wait for the return.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Mar 23, 2011 7:30 pm
Reply with quote

Can you provide a sample of the SYSIN file?

Is there a threshold where it works and if you add another member, it does not work? How many members are you trying to search?
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Thu Mar 24, 2011 4:20 am
Reply with quote

Sometimes TSO sessions have a CPU limit too. Usually it is generous enough to have no impact on doing ordinary work, but a long running foreground process may use it all up.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top