BLKSIZE is always multiple of Lrecl in recfm=fb?
-
- Registered Member
- Posts: 14
- Joined: Thu May 19, 2016 2:14 pm
BLKSIZE is always multiple of Lrecl in recfm=fb?
Hi,
is it true that BLKSIZE is always multiple of Lrecl in recfm=fb?
is it true that BLKSIZE is always multiple of Lrecl in recfm=fb?
Re: BLKSIZE is always multiple of Lrecl in recfm=fb?
If you mention the BLKSIZE as greater than 0, then it should be multiple of LRECL. Else 0 also works.Sharad Nikam wrote: ↑Sun Jul 16, 2023 2:19 pm Hi,
is it true that BLKSIZE is always multiple of Lrecl in recfm=fb?
-
- Registered Member
- Posts: 21
- Joined: Mon Jan 18, 2016 8:16 am
Re: BLKSIZE is always multiple of Lrecl in recfm=fb?
If BLKSIZE(0) is specified, the system will determine the optimal block size based on the maximum record length (LRECL) and the physical characteristics of the disk, or approximately half of a physical track.
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: BLKSIZE is always multiple of Lrecl in recfm=fb?
Long back 'memory & storage' were very expensive. As a programmer, you were needed to calculate the combination of LRECL and BLKSIZE. "BLK" short of "Block" is multiple of LRECL - which means when system read data it could read data of those many "records (one record is one LRECL, considering RECFM=FB)" which could fit in a given BLKSIZE. However that simply means give the highest BLKSIZE, it degraded the performance (there is more to it) - and there was a upper limit set. Said that, if you mention BLKSIZE it should be multiple of LRECL - usually this is the case of coding done in "old time". After the invention of SMS, one can code BLKSIZE=0 to choose from optimum size. Remember, software developments from IBM are usually backward compatible and coding BLKSIZE=0 didn't invalidated the previous BLKSIZE=??, where ?? represent a number. Have oversimplified it all, hopefully, it gets the concept across.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
-
- Registered Member
- Posts: 21
- Joined: Mon Jan 18, 2016 8:16 am
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: BLKSIZE is always multiple of Lrecl in recfm=fb?
You have to remember that IBM mainframes go back to 1964 when the s/360 and it's operating system became available. Systems were expensive relative to programmers and hence letting the programmer make the decisions was cheaper than putting things into the hardware or operating system. And things are still the way they are because IBM has been strongly committed to backwards compatibility so things that worked in 1964, for the most part, continue to work today.Why can't mainframe do it all themself?
Re: BLKSIZE is always multiple of Lrecl in recfm=fb?
Thanks Robert. But it becomes very tough to learn all this.
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