1 / 8

FIXED AND VARIBLE LENGTH

JCL OVERVIEW FOR LENGTH OF RECORD

Harish28
Download Presentation

FIXED AND VARIBLE LENGTH

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FIXED BLOCKED (FB) AND VARIABLE BLOCKED(VB)

  2. F (Fixed) Fixed means that one physical block on disk is one logical record and all the blocks and records are the same size. This format is seldom used. FB (Fixed Blocked) This format designation means that several logical records are combined into one physical block. This format can provide efficient space utilization and operation. This format is commonly used for fixed-length records.

  3. V (Variable) This format has one logical record as one physical block. A variable-length logical record consists of a record descriptor word (RDW) followed by the data. The record descriptor word is a 4-byte field describing the record. The first 2 bytes contain the length of the logical record (including the 4-byte RDW). The length can be from 4 to 32,760 bytes. All bits of the third and fourth bytes must be 0, because other values are used for spanned records. This format is seldom used.

  4. VB (Variable Blocked) This format places several variable-length logical records (each with an RDW) in one physical block. The software must place an additional Block Descriptor Word (BDW) at the beginning of the block, containing the total length of the block. U (Undefined) This format consists of variable-length physical records and blocks with no predefined structure. Although this format may appear attractive for many unusual applications, it is normally used only for executable modules.

  5. Terminology here is pervasive throughout z/OS literature Block Size (BLKSIZE) is the physical block size written on the disk for F and FB records. For V, VB, and U records, it is the maximum physical block size that can be used for the data set. Logical Record Size (LRECL) is the logical record size (for formats F and FB) or the maximum allowed logical record size (for formats V and VB) for the data set. Format U records have no LRECL. Record Format (RECFM) is F, FB, V, VB, or U as just described.

  6. FB (Fixed Blocked) A data set with RECFM=FB and LRECL=25 is a fixed-length (FB) data set with a record length of 25 bytes (the B is for blocked). For an FB data set, the LRECL tells you the length of each record in the data set; all of the records are the same length. The first data byte of an FB record is in position 1. A record in an FB data set with LRECL=25 might look like this: Positions 1-3: Country Code = 'USA' Positions 4-5: State Code = 'CA' Positions 6-25: City = 'San Jose' padded with 12 blanks on the right

  7. VB (Variable Blocked) A data set with RECFM=VB and LRECL=25 is a variable-length (VB) data set with a maximum record length of 25 bytes. In a VB data set, the records can have different lengths. The first four bytes of each record contain the RDW, and the first two bytes of the RDW contain the length of that record (in binary). The first data byte of a VB record is in position 5, after the 4-byte RDW in positions 1-4. A record in a VB data set with LRECL=25 might look like this: Positions 1-2: Length in RDW = hex 0011 = decimal 17 Positions 3-4: Zeros in RDW = hex 0000 = decimal 0 Positions 5-7: Country Code = 'USA' Positions 8-9: State Code = 'CA' Positions 10-17: City = 'San Jose'

  8. Small text

More Related