MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Block size for variable length files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
kalidasv
Beginner


Joined: 05 Mar 2009
Posts: 13
Topics: 8

PostPosted: Sat Apr 18, 2009 11:26 am    Post subject: Block size for variable length files Reply with quote

For fixed block files, the block size is normally a multiple of the record size.

What is the norm when it comes to variable length files? Say my record size is 40 to 50 bytes.

BLOCK CONTAINS ___ TO ___ CHARACTERS
RECORD CONTAINS 40 5O 50 CHARACTERS
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat Apr 18, 2009 12:30 pm    Post subject: Reply with quote

kalidasv,

When RECFM=VB, the value of the LRECL= option is the length of the longest record plus 4 bytes that hold record descriptor information. The value of the BLKSIZE= option can be any value up to 32,760, as long as it is at least 4 bytes longer than the value of the LRECL= option. (These 4 bytes are the block descriptor information.)

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Apr 20, 2009 8:20 am    Post subject: Reply with quote

Because the blocksize can vary, it's usually chosen to complement the storage medium.

DASD - Half-track blocking is usually most space efficient.
TAPE - The largest block possible makes the best use of tape channels and media characteristics such as inter-block gaps.

If you specify BLKSIZE=0 in the JCL, the system determines the best value based on the device to which you're writing.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
kalidasv
Beginner


Joined: 05 Mar 2009
Posts: 13
Topics: 8

PostPosted: Mon Apr 20, 2009 9:23 am    Post subject: Reply with quote

Thanks Kolusu and Bill.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group