Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Is Blocksize of a file with RECFM=F equal to the LRECL?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10234
Location: italy

PostPosted: Tue Jan 29, 2008 12:50 pm    Post subject: Reply to: Is Blocksize of a file with RECFM=F equal to the L
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jan 29, 2008 10:35 pm    Post subject:
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 Moderator


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

PostPosted: Wed Jan 30, 2008 12:16 am    Post subject:
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

Site Director


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

PostPosted: Wed Jan 30, 2008 12:58 am    Post subject: Reply to: Is Blocksize of a file with RECFM=F equal to the L
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us