View previous topic :: View next topic
|
Author |
Message |
tecnokrat Warnings : 1 Active User
Joined: 22 May 2009 Posts: 160 Location: Bangalore
|
|
|
|
Hi,
I have developed a REXX code which searches a given 10 strings for maximum and returns the output in a PS file.
Now as my REXX tool is working fine my requirement here is that im facing a hang problem as the whole time is been laid down for the REXX searching when this TOOL is triggered.
say suppose the strings which to search are from the PRDN libraries so it is taking more than half an hour,so facing the efficiency problems.
Is there any way that i trigger the tool and it processes in the background and get displayed once the whole search is done.so the person can be able to carry on with his prior work.
If not the REXX gets submitted and Passes on to JCL and then after the MAXCC >= 4 then the PS file gets with the desired result. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
To clarify the terminology here, background is a submitted job.
And can that submitted job suddenly interact with your TSO session and show results - NO
This has been discussed many times and the answer never seems to change. There is a search facility on the forum. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
one could rely on the Job card parm NOTIFY=userid |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
...or even an additional TSO SEND step...
O. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
tecnokrat wrote: |
Is there any way that i trigger the tool and it processes in the background and get displayed once the whole search is done.so the person can be able to carry on with his prior work. |
IRXJCL can be a way to go but NOTE IRXJCL does not permit the full functionality of IKJEFT01, so if your REXX uses TSO commands such as ALLOCATE etc. they will fail.
Quote: |
If not the REXX gets submitted and Passes on to JCL and then after the MAXCC >= 4 then the PS file gets with the desired result. |
For what did you post this? What information does this convery? If possible, please rephrase this and post back again if it's relevant to what you are asking. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Dick your key-board is working better than mine today... but I won't delete my post.. |
|
Back to top |
|
|
tecnokrat Warnings : 1 Active User
Joined: 22 May 2009 Posts: 160 Location: Bangalore
|
|
|
|
Ok ,
can we have the rexx job submitted then completely taken over by JCL program and then when the job submits we can go check in the SPOOL.
like
Code: |
REXX SUBMIT----->>>>TAKEN OVER BY JCL---->>>CHECK IN SPOOL
|
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
JCL is not a program - it's just JCL. And what you post does not help us to provide you something helpful - what you post with BBcode is just a DISPLAY and you can display whatever you want.
Probably you've written some edit macro and want to execute it from command line, do you? And that macro should do the "stuff" in background?If so, you might write a small macro which will in turn call your "main REXX"... just a thought ... |
|
Back to top |
|
|
tecnokrat Warnings : 1 Active User
Joined: 22 May 2009 Posts: 160 Location: Bangalore
|
|
|
|
ssems that thoughtful.....let me think on it and get back to u |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
that thoughtful... ?..Good Luck... |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
you can certainly submit any rexx program to run in batch. No problem there. There may, however, be a problem with the algoritm or implementation.
If you are searching all data sets that start, for example, with PRDN, then you might be causing the last reference date to be updated for a very large number of data sets which could cause your storage management system to not be able to move unused datasets off line (to archive, tape, backup, whatever).
The second issue is using Rexx (and presumably EXECIO) alone to do the search. Rexx is pretty slow for this type of thing so you may be using system resources (CPU and I/O) inefficiently. I would suggest calling SORT or SuperC (ISRSUPC) to do the searching and to limit the search to only the data sets you actually care about. You can call SORT or SuperC from Rexx and parse the output using EXECIO. |
|
Back to top |
|
|
|