Record format VBS and it's usage.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Chandan Roy
Registered Member
Posts: 12
Joined: Tue Aug 20, 2013 11:30 am

Record format VBS and it's usage.

Post by Chandan Roy »

What is Record format VBS, I read about them but when do we use them?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Record format VBS and it's usage.

Post by Robert Sample »

VBS means variable, blocked, spanned -- that is, the record lengths for each record can vary, the data set uses blocked records (usually half-track for disk and 32760 for tape), and the records are spanned. When z/OS writes a variable blocked data set, if the block does not have enough space to contain the record then the block is written and a new block started. However, with spanned records the block is filled with part of the record and written so the new block only contains the part of the record not stored in the first block. This is maintained in the record descriptor word (RDW) -- renamed segment descriptor word for spanned data sets -- where the first 2 bytes contain the record length as usual but the last 2 bytes will contain a X'00' to indicate the record starts and ends in the block, X'01' means the record begins but does not end in this block, X'02' means the record ends but does not begin in this block, and X'03' means the record neither starts nor ends in this block.

VBS records are used with system data -- SMF in particular. It is rare for an application programmer to have a need for VBS records -- in more than 36 years of mainframe programming, I have had only ONE application that needed spanned records. The LRECL of the data set was over 22000 and rather than potentially getting as few as one record per block, I used spanned records to leave no more than 4 bytes unused in each block.
Chandan Roy
Registered Member
Posts: 12
Joined: Tue Aug 20, 2013 11:30 am

Re: Record format VBS and it's usage.

Post by Chandan Roy »

Thanks Robert.

That's a great explanation and to the point. Great, Thanks.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”