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

Optimal Space parameters for a dataset


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

New User


Joined: 24 Jan 2011
Posts: 21
Location: India

PostPosted: Fri Jan 23, 2015 9:13 am
Reply with quote

Hi Everyone,

I have a dataset with around 60 million records. Everyday this file gets updated and written to a new file in the program with some records added to it. This takes
almost everyday 20 minutes to complete. I see the below message in SYSMSG for multiple volumes and I believe if I could adjust the space parameter , I could make this job to run little faster.



Code:
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91793 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 140 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91793 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 140 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 98 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 92 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 91 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 38 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 12 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 6 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 2 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L91996 POOL=PR
VOLUME HAS NO FREE SPACE
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L92233 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 95 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L92233 POOL=PR
SECONDARY SPACE REDUCED FROM 700 TO 85 CYL
REDUCES FOR DD=SYS155 DSN=PRD.ILM.XTGSPEC.G5961V00 VOL=L92233 POOL=PR



file is defined in JCL as below

Code:
//             DISP=(NEW,CATLG,DELETE),BUFNO=40,
//             UNIT=&UNITD,
//             SPACE=(CYL,(1400,700),RLSE),VOL=(,,,25),
//             LABEL=,
//             DCB=(&MDSCB,RECFM=VB,LRECL=1254,BLKSIZE=0),
//             MGMTCLAS=GDGBKUP0



Please help me with providing optimal space parameters in the JCL
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Jan 23, 2015 9:45 am
Reply with quote

We here, in this forum, can't respond to this very well, for several reasons.
  • About the only SPACE attribute that might make even the slightest performance improvement is the unit of allocation, and CYL is about the best you can do.
  • It takes a small amount of time to add an additional extent to a data set. Obviously if this can be bypassed you're ahead of the game.
  • Similarly, it takes a small amount of time to do a volume switch. Again, if it can be bypassed, ...
  • The messages you're showing are coming from some sort of product that is not known to me. Some of these messages suggest, to me, that it is operating in a fashion to damage your goal. You must discuss this with your support.
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: Fri Jan 23, 2015 8:24 pm
Reply with quote

Quote:
I believe if I could adjust the space parameter , I could make this job to run little faster.
The VAST majority of the 20 minutes is being spent reading 60 million records and writing 60 million records. Tweaking allocation parameters is not likely to make much of a difference in your elapsed time -- but feel free to try.

However, your BEST bet is to work with your site support group. Their storage people may have suggestions (such as creating a separate storage pool or moving your data set into a different storage pool) that you haven't thought of and do not have the authority to implement if you did think of them.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top