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
 

 

ISRSUPC in Foreground mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: ISRSUPC in Foreground mode
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10257
Location: italy

PostPosted: Wed Mar 23, 2011 2:24 pm    Post subject: Reply to: ISRSUPC in Foreground mode
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: 6967
Location: porcelain throne

PostPosted: Wed Mar 23, 2011 2:44 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 23, 2011 4:00 pm    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Wed Mar 23, 2011 6:11 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Mar 23, 2011 7:30 pm    Post subject: Reply to: ISRSUPC in Foreground mode
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: 650
Location: Whitby, ON, Canada

PostPosted: Thu Mar 24, 2011 4:20 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts ISRSUPC SRCHFOR tool - Query while us... soundarr JCL & VSAM 7 Wed Mar 16, 2016 8:55 pm
No new posts Calling macro via rexx in batch mode. SanaR CLIST & REXX 15 Tue Mar 08, 2016 4:46 pm
No new posts Passing parms when calling ISRSUPC(su... jasorn COBOL Programming 3 Mon Nov 16, 2015 12:06 pm
No new posts Endevor foreground retrival karthik_sripal CA Products 2 Mon Aug 03, 2015 1:36 am


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