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

How can we calculate the BLKSIZE for Variable Block


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

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Wed Aug 30, 2006 8:59 am
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Aug 30, 2006 10:19 am
Reply with quote

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
View user's profile Send private message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Wed Aug 30, 2006 10:27 am
Reply with quote

Hi Priyesh,

Thanks...
Back to top
View user's profile Send private message
Dariusz
Warnings : 1

New User


Joined: 11 Aug 2005
Posts: 27
Location: POLAND

PostPosted: Wed Aug 30, 2006 3:45 pm
Reply with quote

Hi.
For VB records minimal BLKSIZE must be equal LRECL+4.
Regards.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top