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

Is Blocksize of a file with RECFM=F equal to the LRECL?


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

Active User


Joined: 01 Dec 2006
Posts: 144
Location: Mumbai

PostPosted: Tue Jan 29, 2008 12:47 pm
Reply with quote

Is it necessary that for a file with RECFM=F, the blocksize would be required to be equal to LRECL?

Two thing I would like to mention additionally -
1) I tried the manual but could not find any information about this.
2) I tried RECFM=F PS files with different LRECL without giving blocksize and their Blocksize was equal to the LRECL.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jan 29, 2008 12:50 pm
Reply with quote

You are asking about recfm F ...
==> record format fixed ...
==> unblocked...
==> LRECL = BLKSIZE

as per specifications

( ==> stands for implies )
Back to top
View user's profile Send private message
niks_jude
Warnings : 1

Active User


Joined: 01 Dec 2006
Posts: 144
Location: Mumbai

PostPosted: Tue Jan 29, 2008 1:23 pm
Reply with quote

Ok. So that means the blocksize for a RECFM=V file is the largest LRECL.
Back to top
View user's profile Send private message
srinathangya

New User


Joined: 19 Dec 2005
Posts: 77

PostPosted: Tue Jan 29, 2008 1:55 pm
Reply with quote

Hi there.. Whether LRECL and BLKSIZE shud be equal or different depends upon the type of application u r using. Blocks are the unit of information transferred between DASD and buffer. If U r using a sequential file, then it is recommended to have block size to be as big as possible. This reduces the data transfer time. If U r using say an Index file, where, U pick the record depending upon the key value, it is better to go with the LRECL and Blksize the same. If U r unsure better leave LRECL and BLKSIZE with the same value.

Hope i havent said anything wrong :-)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 29, 2008 10:35 pm
Reply with quote

Hello,

Quote:
So that means the blocksize for a RECFM=V file is the largest LRECL.
Yes, however recfm=v is seldom used. Most variable files are VB and then blksize is usually not the largest lrecl.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Jan 30, 2008 12:16 am
Reply with quote

Hmmm ... I was under the impression that for a VB file, the BLKSIZE must be at least LRECL+4 to allow for the 4-byte BDW. I thought that was true for RECFM=V as well. Not so for one or both?

I tried some experiments and couldn't actually write records into a file with RECFM=V,LRECL=80,BLKSIZE=80. If I specified that for IEBGENER's SYSUT2 and then used DFSORT to display it, it showed the BLKSIZE as 84.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 30, 2008 12:58 am
Reply with quote

Hello,

Quote:
I was under the impression that for a VB file, the BLKSIZE must be at least LRECL+4 to allow for the 4-byte BDW. I thought that was true for RECFM=V as well. Not so for one or both?
Yup, true for both.

My answer was a bit incomplete icon_redface.gif

d
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 7
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top