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 the statements: typrun=scan and typrun=hold do in a JCL statement
In Job, there are 10 steps. If I want to execute the first 6 steps and don't want to execute from 7th to 10th step. What is the solution for this ?
Give the syntax of job specifying jcl statement.
when does a dataset go uncataloged?
Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?
Suppose I have Five Steps in PROC In this Case I want to Execute third Step in PROC using Main JCL don't use any COND Explain with Coding Thanks & Regards SHREE
how to split a file
How does jcl act on a cobol code?
Is it possiable to use a gdg in the INCLUDE statement in a SORT jcl? I am using this because I want to change the condition with out changing the jcl. Please provide with a sample code.
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?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3