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:
- EOL CRLF - This is the standard CR/LF (X'0D0A') line delimiter used in Windows text files.
- RECFM U - RECFM is an IBM mainframe acronym, meaning Record Format, and U stands for Undefined or Unknown, and means it is not known in advance what the maximum size of a record is until the file is read.
- LRECL 0 - LRECL is an IBM mainframe acronym, meaning Logical Record Length. For SPFLite, LRECL generally means the maximum logical record length. Specifying LRECL 0 does not mean the maximum is zero, but rather, that there is no (arbitrary) maximum length.
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.
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 multi-format Help generator