What is the difference between BLKSIZE and LRECL?
Answers were Sorted based on User's Feedback
Answer / guest
LRECL is the length of ur record file.
Blksize is the length of the block in which records are
stored.It varies in case of fixed length records and
variable length records.
fixed length records-It is a multiple of lrecl.
e.g. suppose u have blksize =800 & lrecl=80.It means that
there are 10 records each of size 80.
variable length records-It is the length of longest record
in the block + 8 (bcoz. here lrecl=length of longest record
+4 & blksize=lrecl+4).
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / guest
LRECL is the logical record length , where as BLKSIZE is
multiples of LRECL
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / stu
Data is read and written to files in blocks. The reading
and writing of blocks is I/O. I/O is overhead (increases
runtime and cost) and you want to keep it to a minimum.
When reading a file, a whole block of records will be read,
but the records in the block will be fed to the program one
at a time until the block is exhausted and the next block is
read. The operating system does this behind the
scenes--it's transparent to the programmer.
When writing to a file, the records are not actually written
to the file until a block is full (or the program ends--at
which time the last block is written if it contains at least
1 record.) Again, this is transparent to the programmer.
Obviously, to keep I/O low, you want the cram as many
records into a block as possible.
Let's say your FB file's record length (LRECL) is 252 bytes
and your facility allows block sizes up to 27000 bytes.
Your blocksize would be ((integer (27000 / 250)) * 252) or
26964 (107 records).
| Is This Answer Correct ? | 0 Yes | 0 No |
what are the options in file-aid to edit vsam dataset and to compare data sets.
How does -818 sql error occur? Why does it happen and what can be done to overcome this error code?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Mention the types of job control statements?
What does the keyword DCB mean and what are some of the keywords associated with it?
is there any way to execute more than one proc in the same exec statement at the same time..?
when we use sysprint and sysout statements
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?
Whats error code s222?
Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?
13 Answers CGI, DSRC, IBM,
whats SOC7?