Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between BLKSIZE and LRECL?

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


Please Help Members By Posting Answers For Below Questions

Describe the various parameters utilized in the creation of a gdg?

1103


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1238


What are steplib and joblib? What for they are used?

1140


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1130


Explain the function of the dd dcb keyword?

1185


what is DD statement is used in JCL?

1131


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2511


Explain the function of a dd statement?

1126


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1191


How can the attributes of one sms dataset be copied to another dataset?

1352


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?

2701


Is automatic restart possible in jcl? If yes, how?

1065


in ways data can be passed to a COBOL program from JCL?

1145


Why block size is multiple of lrecl in jcl?

1355


What is the function of dd name parameter with a 2 part structure; audit.report?

1173