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 |
How do you pass parameters to the program as the job is being executed ?
If job is submitted with typerun = hold then how can we submit the same job?
If i have defined an temperory dataset in step2, how can i call back or use the same dataset in step5 of the same job
What are the default system and catalog libraries in JCL?
Suppose I have seven jobs to do, but I want to hold one than how can I do this?
THERE IS ONE STEP AS BELOW: //STEPJS060 EXEC PGM=XYX, COND=((200,EQ,JS010),(0,NE,JS020.C),EVEN) COULD ANY ONE EXPLAIN HOW COND PARAMETER WORKS HERE? I AM CONFUSED BECOZ OF "EVEN".
Explain about LMOPEN -
How do you overcome this limitation ?
what r the types of job control statements?
Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?
when does a dataset go uncataloged?
which utility is used to sort a file in jcl?