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

Efficiency reducing in REXX tool


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Mon Jan 11, 2010 1:15 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jan 11, 2010 2:29 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Jan 11, 2010 2:42 pm
Reply with quote

one could rely on the Job card parm NOTIFY=userid
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jan 11, 2010 2:57 pm
Reply with quote

...or even an additional TSO SEND step...

O.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 11, 2010 2:58 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 11, 2010 3:02 pm
Reply with quote

Dick your key-board is working better than mine today...icon_smile.gif but I won't delete my post..icon_biggrin.gif
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Mon Jan 11, 2010 7:04 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 11, 2010 8:07 pm
Reply with quote

Quote:
... JCL program
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 ...icon_neutral.gif
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Mon Jan 11, 2010 8:25 pm
Reply with quote

ssems that thoughtful.....let me think on it and get back to u icon_wink.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jan 11, 2010 8:55 pm
Reply with quote

that thoughtful... icon_confused.gif ?..Good Luck...
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Tue Jan 12, 2010 3:25 am
Reply with quote

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
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top