Answer Posted / 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 |
Post New Answer View All Answers
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Explain the job statement in jcl?
how you will the direct the data to spool using sysout option?
How to alter the parameters for the existing gdg?
Can an individual step be restricted from using all the jobs allowed cpu time?
How can the disposition of sysout datasets be set for an entire jobstream?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
List the different components of jcl statement?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
How to override loadlib?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What do you know about jcl?
What is the purpose of the dd keylen parameter?
what is JCL?
Is there any command to check wether the ps file is in sorted order?