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 does SYSIN * indicate?
what are the ways of passing data to a cobol program from jcl?
i need some shortcuts and tso commands can any on ehelp me in these ?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
I've one sequential file, that file size is LREC=100 (File contain Records like 1 to 100). Now I was increase the file size is LREC=102. My question is I want insert 00 (Two Zeros) in to the new file (That output file looks like : 00123 up to 100). How will write the SORT card in JCL. Please let me know.
Explain about LMGET�read a logical record from a data set
how to see the latest generation in gdg?
What is the error/SOC code if dd names are not sysut1 and sysut2 in IEBGENER?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
How can a job send a status message to a tso user at the completion of a job?
how to set dependancy for jobs?
Is there any command to check wether the ps file is in sorted order?