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

the DCB


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravi30
Currently Banned

New User


Joined: 04 Oct 2007
Posts: 10
Location: chennai

PostPosted: Wed Dec 19, 2007 11:16 am
Reply with quote

while creating a new ps/pds what is the use of mentioning the LRECL as a factor of the BLKSIZE.
for eg like LRECL=70,BLKSIZE=700
LRECL=80,BLKSIZE=800
AS SUCH..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 19, 2007 1:19 pm
Reply with quote

Unless the dataset requires a specific blksize, do not bother coding BLKSIZE, let SDB do the hard work for you.
Back to top
View user's profile Send private message
babai043
Currently Banned

New User


Joined: 19 Dec 2007
Posts: 19
Location: chennai

PostPosted: Mon Dec 24, 2007 5:22 pm
Reply with quote

Hi,

LRECL:
It specifics logical record length. The length of the record is as in the program for fixed length records, length of the longest record with four more bytes for variable length records.

Regards,
Srinivas Jala
Back to top
View user's profile Send private message
babai043
Currently Banned

New User


Joined: 19 Dec 2007
Posts: 19
Location: chennai

PostPosted: Mon Dec 24, 2007 5:24 pm
Reply with quote

LRECL=yy specifies the length of records
equal to the record length for fixed-length records
equal to the size of the largest record plus the 4 bytes describing the record's size for variable-length records

omit the LRECL for undefined records

LRECL can range from 1 to 32760 bytes

BLKSIZE=zz specifies the blocksize if you wish to block records
must be a multiple of LRECL for fixed-length records
must be equal to or greater than LRECL for variable-length records
must be as large as the longest block for undefined-length records
BLKSIZE can range from 1 to 32760 bytes
6.4.3.1 Fixed Block
// RECFM=FB,LRECL=80,BLKSIZE=9040
This dataset will have fixed length records with a length of 80. There will be 113 records of data per block.

BLKSIZE/LRECL = 9040/80 = 113 records of data per block


.4.3.2 Variable Block
// RECFM=VB,LRECL=255,BLKSIZE=3120
This dataset will have variable length records with a maximum of 255 characters. The blocksize of the dataset will be 3120.
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

 


Search our Forums:

Back to Top