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 is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?
a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?
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.
Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?
what type of version is we r using now real time in all modules(cobol, jcl, cics, db2, vsam)?
how you can direct the data to spool using SYSOUT option?
Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?
Hi, Say I have 10 flat files and I want to copy all these 10 flat files to a GDG versions flat files (I have GDG base: FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot using a JCL. May be by using IEBGENER. It's a bit urgent. So anyone's fast rely would be appreciated.. Thanks in advance.. 10 flat files ----------------------------------- FDWS01.SUB.RESTORE1 FDWS01.SUB.RESTORE2 FDWS01.SUB.RESTORE3 ; ; FDWS01.SUB.RESTORE10 TO GDG versions ----------------------- FDWS01.TEST.RESTORE.G0001V00 FDWS01.TEST.RESTORE.G0002V00 FDWS01.TEST.RESTORE.G0003V00 ; ; FDWS01.TEST.RESTORE.G0010V00
Can I share my data with other jobs? How?
What is the function of //cntl statement?
On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?
Explain about REXX