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
What is the difference between the positional and keyword parameters? Give examples.
how you can access an uncataloged dataset in a JCL?
What do you understand by the term job time – out and how can you overcome that?
write a jcl to execute a job by 7:00 am on jan 20,1986?
When output dataset space is required, what quantity categories are used?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
How can a stopped job be started again?
How would you understand error(execution phase)?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
What are steplib and joblib? What for they are used?
How is a type of file defined in the jcl that executes the cobol program?
What is jcl in mainframe?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What is the function of dd name parameter with a 2 part structure; audit.report?
Is automatic restart possible in jcl?