BLKSIZE is always multiple of Lrecl in recfm=fb?

JES2/3, JCL, utilities.
Post Reply
Sharad Nikam
Registered Member
Posts: 15
Joined: Thu May 19, 2016 2:14 pm
India

BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Sharad Nikam »

Hi,

is it true that BLKSIZE is always multiple of Lrecl in recfm=fb?
Maven JJ
Registered Member
Posts: 14
Joined: Thu May 19, 2016 3:36 pm

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Maven JJ »

Sharad Nikam wrote: Sun Jul 16, 2023 2:19 pm Hi,

is it true that 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.
Abbey Tiwari
Registered Member
Posts: 21
Joined: Mon Jan 18, 2016 8:16 am

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Abbey Tiwari »

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.
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Anuj Dhawan »

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.
Abbey Tiwari
Registered Member
Posts: 21
Joined: Mon Jan 18, 2016 8:16 am

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Abbey Tiwari »

Why can't mainframe do it all themself?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Robert Sample »

Why can't mainframe do it all themself?
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.
Maven JJ
Registered Member
Posts: 14
Joined: Thu May 19, 2016 3:36 pm

Re: BLKSIZE is always multiple of Lrecl in recfm=fb?

Post by Maven JJ »

Thanks Robert. But it becomes very tough to learn all this.
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 “JCL - Job Control Language.”