View previous topic :: View next topic
|
Author |
Message |
ravi30 Currently Banned New User
Joined: 04 Oct 2007 Posts: 10 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Unless the dataset requires a specific blksize, do not bother coding BLKSIZE, let SDB do the hard work for you. |
|
Back to top |
|
|
babai043 Currently Banned New User
Joined: 19 Dec 2007 Posts: 19 Location: chennai
|
|
|
|
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 |
|
|
babai043 Currently Banned New User
Joined: 19 Dec 2007 Posts: 19 Location: chennai
|
|
|
|
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 |
|
|
|