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
Describe the various parameters utilized in the creation of a gdg?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are steplib and joblib? What for they are used?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Explain the function of the dd dcb keyword?
what is DD statement is used in JCL?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Explain the function of a dd statement?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
How can the attributes of one sms dataset be copied to another dataset?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Is automatic restart possible in jcl? If yes, how?
in ways data can be passed to a COBOL program from JCL?
Why block size is multiple of lrecl in jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?