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

To save cost in batch programs


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 37
Location: USA

PostPosted: Mon Aug 13, 2012 12:28 pm
Reply with quote

Hi
I would like to know what kind of benfits we get if change below

'If program files are defined as "ACCESS IS DYNAMIC" and they're only being accessed sequentially, change them to "ACCESS IS SEQUENTIAL". Same holds true for files defined as "ACCESS IS DYNAMIC" and the access is purely random, change them to "ACCESS IS RANDOM".''

I would like to analyse my all batch programs and change if we get benfits.

Please let me know..

Thank you
Sree
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Aug 13, 2012 1:39 pm
Reply with quote

Please don't tailgate an old topic.

Why don't you look at what the Cobol manuals have to say, and also try a couple of sample programs?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 13, 2012 2:30 pm
Reply with quote

Merely changing the ACCESS clause in the program will save little, if anything, since that clause is mostly for COBOL and has little or no run-time impact.

Managing buffers, which requires JCL changes, on the other hand can make a big difference especially if your site does not use vendor software to do so and your site uses the default buffering.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Mon Aug 13, 2012 8:01 pm
Reply with quote

Reading suggestion: VSAM Demystified. It's an IBM Redbook. That will tell you a lot of what you need to know. I'm pretty sure it's been kept updated, but make certain the specs match what your site is running.

You can get huge benefits in programs that are i/o bound on the VSAM files, but it's more than changing the access type. As said before, you need to also increase/improve the amount of read buffers the program can access.
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 Aug 13, 2012 8:59 pm
Reply with quote

Hello,

Not to say the obvious, but you first need to identify whicn processes are using "too much" system resources. Then address the worst offenders first.

These may be vsam. sequential, and/or database processes. Each requires a different king of "tuning" - but first (imho) identification of where to get the best return on the improvement work.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top