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

What is the significance of blksize


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
girish.kanswa
Warnings : 1

New User


Joined: 13 Nov 2007
Posts: 2
Location: pune

PostPosted: Wed Jul 09, 2008 5:22 pm
Reply with quote

Hi All,

Can you please tell me what is the significance of blksize in JCL..?

Thanks in advance
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 09, 2008 5:47 pm
Reply with quote

I generally do not specify it, just let the O/S do the work for you as it will select the best BLKSIZE for the output device being used.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Jul 09, 2008 6:20 pm
Reply with quote

Hi,

If you are searching for the basic (in JCL world) definition then,

The BLKSIZE parameter is an optional parameter of the DD statement which provides the block size, in bytes, to use for the largest block to be processed for the associated data set.

Well, lately this question is been asked in many threads, just a coincidence or..anyways here are the links for some similar threads..

www.ibmmainframes.com/viewtopic.php?t=32215&highlight=blksize

www.ibmmainframes.com/viewtopic.php?t=32057&highlight=blksize

Please learn to search the forums.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Jul 09, 2008 6:41 pm
Reply with quote

Combining small records into blocks make I/O and data storage much more efficient and can reduce elapsed time to run a job. A file's BLKSIZE can be specified in a program but the best practice is to allow the JCL or system to set it. Most times you can specify BLKSIZE=0 and the system determines the best blocksize for the device.
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: Wed Jul 09, 2008 9:58 pm
Reply with quote

Hello,

Quote:
Can you please tell me what is the significance of blksize in JCL..?
The main significance of the block size is the difference between physical and logical input/output actions. Basically, if your data has one record per block, every single read or write requires physical i/o. If your data has 1000 records per block, the number of physical reads or writes for 1000 records is one.

Another very important consideration the block size determines is how efficiently your data is allocated on the media (dasd more so than cart/tape). Efficient block sizes can greatly reduce the amount of media needed to store the data.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jul 10, 2008 12:08 pm
Reply with quote

Quote:
Efficient block sizes can greatly reduce the amount of media needed to store the data.

Yes, there is a gap between every block that is stored.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Jul 10, 2008 12:18 pm
Reply with quote

expat wrote:
Yes, there is a gap between every block that is stored.
And this is more paining when a media can be accessed in linear way only..such as TAPE media.
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 Need help to convert BLKSIZE to Track... JCL & VSAM 3
No new posts Blksize question JCL & VSAM 12
No new posts Getting information (RECFM/LRECL/BLKS... COBOL Programming 3
No new posts Wanted to calculate TRK when i have B... JCL & VSAM 10
No new posts Allocate dataset withour BLKSIZE CLIST & REXX 2
Search our Forums:

Back to Top