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

How can I reduce CPU usage in REXX program.


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

New User


Joined: 15 Dec 2006
Posts: 29
Location: Korea

PostPosted: Mon Sep 03, 2012 8:01 pm
Reply with quote

Hello,

I working REXX program read and calculation multi line(about 10million line).

This job used 30 min cpu time and 50 min elapsed time and
about 20% cpu used during job running.

I want to have solution for reduce cpu and elapsed time.

Please let me have.

Thanks,
Mansik.
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 Sep 03, 2012 8:08 pm
Reply with quote

Possibly, start by showing code snippet. Bit off topic but a "10million" is number of records the REXX work on or the number-of-code-lines in REXX? If it's later, possibly, just post the "calcualtion-part" from your REXX-code (and a TRACE)...
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 03, 2012 8:22 pm
Reply with quote

Quote:
And "10million" is number of records in input or the number-of-code-lines in REXX?
icon_eek.gif icon_eek.gif icon_eek.gif

just run a small experiment, without carrying on any computation
just read the 10 millions record...
and You will see that the most of the time is spent doing the I/O

You will see that what You ask cannot be done, REXX i/o is just a resource hog.

not to talk about stemmed variables.
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 Sep 03, 2012 8:35 pm
Reply with quote

Thanks Enrico. Knowing REXX is not a good choice for "huge input", I was beaten up by
Quote:
I working REXX program read and calculation multi line(about 10million line).
and was fearful once I asked "Possibly, start by showing code snippet" and edited it later to add more confusion... icon_redface.gif. Just wanted to avoid some one posting a huge code... icon_rolleyes.gif.

Sorry for taking the discussion out of the context... icon_redface.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 03, 2012 8:37 pm
Reply with quote

icon_redface.gif my bad I had forgot the icon_wink.gif smiley icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 04, 2012 7:49 am
Reply with quote

Hello,

The TS may have dissappeared . . .

Quote:
How can I reduce CPU usage in REXX program.
Re-write in a language better suited for high volume data and calculations . . .
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 04, 2012 1:35 pm
Reply with quote

the TS has this habit, I checked his other topics!
I deleted a few of them,where the TS asked, more info was requested, nothing was provided
( that' s why the <proof> is not there )

probably time to warn.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Sep 04, 2012 8:38 pm
Reply with quote

Anuj Dhawan wrote:
"10million" is number of records the REXX work on or the number-of-code-lines in REXX?

I think icon_eek.gif icon_eek.gif icon_eek.gif is the appropriate emotion! icon_wink.gif
My monster REXX program (10 panels, 9 sql cursors, 4 ispf tables) has around 1500 lines of code (i.e. comments and empty lines excluded).
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Sep 04, 2012 11:13 pm
Reply with quote

10,000,000 lines of input processed in 50 minutes by Rexx - that is pretty good going.
Back to top
View user's profile Send private message
abhisingh

New User


Joined: 26 Apr 2012
Posts: 10
Location: India

PostPosted: Tue Oct 23, 2012 6:25 pm
Reply with quote

With my limited knowledge.. icon_rolleyes.gif

REXX is doing well what it is suppose to do..

Your code is of huge line count with various i/o that's why there is some performance issue. Better go for other powerful language for ur task.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Oct 24, 2012 10:42 pm
Reply with quote

This REXX needs to be in a museum of sorts. It should be in the Hall of Bad Decisions that Made Sense at the Time.

My guess is that someone had a need, realized they could cobble a good REXX in a few hours, tested it with a few dozen lines of input. That saved them the hours of paperwork and meetings needed to get a real program integrated into the system.

Now, the REXX has consumed FAR more time and money than the real program PLUS the time and money needed to have gotten it implemented.

So to all the paperwork wonks out there: Take notice!
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 Using API Gateway from CICS program CICS 0
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
Search our Forums:

Back to Top