RECFM - Set Record Format

Syntax


RECFM

[ { U | F | V | VBI | VLI } ]


Operands


U

The file uses Undefined type records.   i.e. The records are separated by unique delimiters which should be specified using the EOL command.


F

The file uses Fixed record length records.  Fixed records may or may not also use unique delimiters.  If delimiters are also used, the specific delimiters should be set via the EOL command.  As well, the length of the fixed records should be set via the LRECL command.


V

The file uses Variable record format.  Typically this means is originated at an IBM mainframe site or from an emulator (such as Hercules). If so, then EBCDIC would probably also need setting via the SOURCE command.  Note this support is only for unblocked variable, SPFLite does not support VB or VBS record formats.


VBI

The file uses variable format where a 4 byte RDW (Record Descriptor Word) precedes the record data.  The RDW contains the length of the data, not including the RDW itself.  VBI indicates the word is in 'Big-endian' format.


VLI

The file uses variable format where a 4 byte RDW (Record Descriptor Word) precedes the record data.  The RDW contains the length of the data, not including the RDW itself.  VLI indicates the word is in 'Little-endian' format.


Description


If entered without any operand, RECFM will display the current setting.


In order to properly read an input file, SPFLite must be provided with some information regarding what the file is expected.  Basic to this is the Record Format.


More details on this area can be found in Handling Non-Windows Text Files


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


Note that RECFM is an IBM mainframe acronym, meaning Record Format.


Created with the Personal Edition of HelpNDoc: Free help authoring environment