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

To reduce the Batch job run time


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harkar
Warnings : 2

New User


Joined: 11 Nov 2006
Posts: 7
Location: Chennai

PostPosted: Mon Nov 19, 2007 8:36 pm
Reply with quote

Hi ,

Can some one suggest me how to reduce the batch job run time?

Regards
Chandu
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Mon Nov 19, 2007 9:21 pm
Reply with quote

Remove some steps, get a bigger mainframe, use empty input files.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Mon Nov 19, 2007 9:53 pm
Reply with quote

harkar,

your question provided so little information, was so vague, displayed so little understanding of computers

that

not only did you deserve Steve's answer, I wish I had been clever enough to say it first.

yeah for Steve, very nice way of handling such a ridiculous question.
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: Mon Nov 19, 2007 11:30 pm
Reply with quote

Hello Chandu,

Now that you have been somewhat "beaten up", let me suggest that to get anything useful from the forum, you have to provide something for us to work with - you did not.

If you will clarify what run time you want to reduce, we may be able to offer suggestions. You need to describe the process, what the volume of the input and output is, how long the process takes, and what you consider acceptable run time.

To go along with what others have already posted, the way your question is presented, the only answer would be some form of "reduce the resources used" or "find somewhere faster to run it".
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Tue Nov 20, 2007 3:04 am
Reply with quote

Another answer might be........design your applications the way you should.
Back to top
View user's profile Send private message
harkar
Warnings : 2

New User


Joined: 11 Nov 2006
Posts: 7
Location: Chennai

PostPosted: Fri Dec 12, 2008 9:47 am
Reply with quote

I mean to say,let us assume we have a COBOL DB2 program and it is taking most of the CPU time, how to reduce the CPU time? like tuning the DB2 query without impacting the functionality , like wise do you have any other suggestions where the we can implement few things to reduce the CPU time??

Please excuse me if my previous questions was not clear!!!

Chandu
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: Fri Dec 12, 2008 10:24 am
Reply with quote

Welcome back to your topic icon_smile.gif Only been a year icon_wink.gif

As before, you haven't provided anything for us to use to help you icon_confused.gif

Before you can reduce the cpu time, you need to identify which part(s) of the main problem program are using the most time.

You need to consider how many rows are processed by the code and then determine if there might be a better way to implement that code.

Suggest you do some analysis as to how much work is actually being done (much of it may just be overhead) and we can go from there.

You might also talk with your dbas as they have tools to monitor queries and should be able to spot problem sql.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Dec 12, 2008 12:29 pm
Reply with quote

Quote:
Only been a year
I wonder ..s/he still remember the password to login here.. icon_razz.gif
Back to top
View user's profile Send private message
Rajeev Saluja

New User


Joined: 28 Mar 2008
Posts: 6

PostPosted: Fri Dec 12, 2008 4:03 pm
Reply with quote

Hi,

In regard your query..There is a suggestion

- Relocate the steps in JCL (e.g Backup File steps) which can be run parallel in some other JCL so as to save execution time.

- Can remove the wait time from the JCL (if it been used)

-Can alter the JCL to run in 2 phases (phases-1, phases-2) which can also run parallely but not impacting/editing the data in the file due to the change.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Dec 13, 2008 1:14 am
Reply with quote

After all of the above, consider using batch pipes.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Sat Dec 13, 2008 1:51 am
Reply with quote

The question, such as it was, was about CPU time, not elapsed time. Parallel execution will not affect CPU time and might even increase it very slightly. But as others have said, there is absolutely no information to work with in the question, so any answer is just speculation. All we know is that there is some sort of COBOL program and that DB2 is somehow involved. Sort of like asking "I have this thing and I want it to be different. Can anyone help?"
Back to top
View user's profile Send private message
Rajeev Saluja

New User


Joined: 28 Mar 2008
Posts: 6

PostPosted: Tue Dec 16, 2008 7:42 pm
Reply with quote

Dears,

I am not sure if you consider the CPU usage might be not full while executing a particular job/set of jobs. If CPU can accomodate the same space can be utilized in earlier scenario thereby reducing the load on existing job. If in a small example consider your job has BACKUP file step. The same step if you take earlier during backup in previous job steps it wont change/impact much if we introduce the backup step in the same earlier job.
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 Dec 16, 2008 8:11 pm
Reply with quote

More efficient block sizes, faster media, and proper scheduling are generic ways to improve sort performance.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 16, 2008 8:12 pm
Reply with quote

All the suggestions given are part of any decent organization standards and practices manual
under the headings
... <general procedures layout> or something similar
... <step sequencing> for backup archivals restarts
... <resource availability checking> (*)

unless the OP has given evidence of unreasonable elapsed/run times
there very little we can do for him

(*) with automated tape libraries now is not an issue any longer
but once upon a time with manual tape handling a proper tape volume pull list and preparation was crucial to a smooth job flow
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts RC query -Time column CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top