Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Efficiency reducing in REXX tool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Efficiency reducing in REXX tool
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jan 11, 2010 2:29 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Mon Jan 11, 2010 2:42 pm    Post subject:
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: 2360
Location: Israel

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

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

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

Senior Member


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

PostPosted: Mon Jan 11, 2010 2:58 pm    Post subject: Reply to: Efficiency reducing in REXX tool
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

Senior Member


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

PostPosted: Mon Jan 11, 2010 3:02 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 11, 2010 8:07 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon Jan 11, 2010 8:55 pm    Post subject:
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: 401
Location: Mumbai

PostPosted: Tue Jan 12, 2010 3:25 am    Post subject:
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    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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us