LRECL - Specify Record Length






The (maximum) Logical Record Length of the file, or 0 (zero)


Conventional Windows text files are simple text lines delimited by an End-Of-Line sequence, usually the control characters CR/LF.  

Text records may be any length from zero up to the systems maximum string length (2 gig), though in practice, text lines are never so long.  A conventional Windows text file has the following record format information in its Profile:

Files originating on a mainframe or a nonstandard system may contain a fixed-length record format.  The LRECL parameter allows you to specify a given fixed length for a record.  For fixed length files using RECFM F, the LRECL value is then, not the maximum record length, but the only record length.

Fixed-length records may be stored either with or without End of Line characters.  The LRECL size refers to the data length, without regard to the presence of delimiters.  

If you wish to edit a file with no End of Line delimiters at all, you would specify EOL NONE.  File types declared to be EOL NONE must have a defined LRECL value that is not 0 (zero).  You would also have to RECFM F to signify a fixed-length file, or RECFM V to signify a variable-length file that contains Record Descriptor Words (RDW's) instead of EOL delimiters.

See also MINLEN - Set Minimum Record Length and Managing Line Lengths for more information.

More details on handling special file formats can be found in Handling Non-Windows Text Files.

The LRECL value is stored as part of the PROFILE options which are maintained individually by file type.

Created with the Personal Edition of HelpNDoc: Full-featured EBook editor