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

difference between BLKSIZE and LRECL in terms of PS and PDS?


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

New User


Joined: 24 Jun 2008
Posts: 59
Location: chennai

PostPosted: Thu Jul 17, 2008 8:11 pm
Reply with quote

what is the difference between BLKSIZE and LRECL in terms of PS and PDS?
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: Thu Jul 17, 2008 8:20 pm
Reply with quote

Your question is a bit confusing. The members of a PDS have a common LRECL. The members don't have a BLKSIZE, the PDS has one. With a Physical Sequential file, the records have a LRECL and the file itself has a BLKSIZE. All this info is in the JCL Manual.
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: Thu Jul 17, 2008 10:59 pm
Reply with quote

LRECL is Logical RECord Length -- the length of an individual record (or the maximum size of an individual record for variable length records). BLKSIZE is the physical block size written to the hardware and consists of some number of records (1 minimum, maximum depending on the LRECL and other factors). Physical sequential files and members of a PDS have the LRECL of the file (eg, the record length of each individual record depends on the LRECL of the entire dataset but can vary); BLKSIZE is a characteristic of the entire dataset.

The directory of a PDS has no relationship to the LRECL of the PDS, as each PDS directory block is a 256-byte area.

So to answer your question, BLKSIZE is the physical length of data written to disk or tape and that block contains a number of logical records each no more than LRECL bytes long (and fixed at LRECL bytes long for fixed length files). These definitions apply to PS and PDS files.
Back to top
View user's profile Send private message
Przemyslaw Krekora

New User


Joined: 20 Feb 2008
Posts: 9
Location: Poland

PostPosted: Sat Jul 19, 2008 12:32 am
Reply with quote

Continuing, whenever you read data from disk, you read data, block after block. So if for your PDS (for example of course) has blocksize which can have 10 records, there are read always 10 records even when you want to read only one record.
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 VB to FB - Finding LRECL SYNCSORT 4
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
Search our Forums:

Back to Top