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
 

 

How can I reduce CPU usage in REXX program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How can I reduce CPU usage in REXX program.
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

Senior Member


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

PostPosted: Mon Sep 03, 2012 8:08 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Mon Sep 03, 2012 8:22 pm    Post subject: Reply to: How can I reduce CPU usage in REXX program.
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

Senior Member


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

PostPosted: Mon Sep 03, 2012 8:35 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Mon Sep 03, 2012 8:37 pm    Post subject: Reply to: How can I reduce CPU usage in REXX program.
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

Site Director


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

PostPosted: Tue Sep 04, 2012 7:49 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10292
Location: italy

PostPosted: Tue Sep 04, 2012 1:35 pm    Post subject: Reply to: How can I reduce CPU usage in REXX program.
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: 1235
Location: Israel

PostPosted: Tue Sep 04, 2012 8:38 pm    Post subject:
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: 1845
Location: UK

PostPosted: Tue Sep 04, 2012 11:13 pm    Post subject:
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    Post subject: Reply to: How can I reduce CPU usage in REXX program.
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am


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