View previous topic :: View next topic
|
Author |
Message |
Husna
New User
Joined: 02 Jun 2006 Posts: 49
|
|
|
|
Hi all,
I have small doubt in the DCB Parameter. Any one of you please clarify the same?
Fixed Block
-------------
// RECFM=FB,LRECL=80,BLKSIZE=9040
This dataset will have fixed length records with a length of 80. There will be 113 records of data per block.
BLKSIZE/LRECL = 9040/80 = 113 records of data per block
Note: Multiple's of LRECL is BLKSIZE (80*113=9040)
Variable Block
--------------
// RECFM=VB,LRECL=255,BLKSIZE=3120
This dataset will have variable length records with a maximum of 255 characters. The blocksize of the dataset will be 3120.
Here, I am unable to understand this BLKSIZE concept. Here, BLKSIZE =3120 (But, it is not multiple's of 255). How can we calculate the BLKSIZE for Variable Block? Could you please let me know the same? |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Husna,
Quote: |
I am unable to understand this BLKSIZE concept. Here, BLKSIZE =3120 (But, it is not multiple's of 255). |
In case of VB, its not necessary for BLKSIZE to be a multiple of LRCEL.
It should be either same as or greater than LRECL in case of VB recs. |
|
Back to top |
|
|
Husna
New User
Joined: 02 Jun 2006 Posts: 49
|
|
|
|
Hi Priyesh,
Thanks... |
|
Back to top |
|
|
Dariusz Warnings : 1 New User
Joined: 11 Aug 2005 Posts: 27 Location: POLAND
|
|
|
|
Hi.
For VB records minimal BLKSIZE must be equal LRECL+4.
Regards. |
|
Back to top |
|
|
|