Findrecl


PURPOSE   OPERATION   COMMAND LINES   OPTIONS   RELATED PROGRAMS


Author: Dan Mares, dmares @ maresware . com (you will be asked for e-mail address confirmation)
Portions Copyright © 1998-2016 by Dan Mares and Mares and Company, LLC
Phone: 678-427-3275

All programs are command line programs.
MUST be run within a command window as administrator.


Top

Purpose

To find the record length of fixed length files.

The files must not have any “padding” at the end of the file.

If the files are carriage return delimited, the carriage return will dictate the file size.


Top

Operation

This program counts the characters (up to 32768) in an input file, and tells you at which intervals it finds an end of record symbol. In hexadecimal format the end of record symbol is an 0x0a.

Findrecl will also tell you if it finds an 0X0D in the record.

If the file contains fixed length records, the program will attempt to find the record length of fixed length records that do not have carriage return delimiters.

It performs an analysis and prints what it thinks are possible record lengths. You then select your choices from the possibilities presented. This analysis works best on files that are sorted. It attempts to find the location of the key field while doing its analysis.

It will count up to 10 records by default unless you ask it to stop.

If the third item on the command line is a number, it will check this many records for carriage return pairs.

If the record length of the file is very large (i.e., greater than 500 characters per record) then this program may not work correctly.


Top

Command Lines

C:> findrecl junk

Will attempt to find the record length of the fixed records in junk.

C:> findrecl  junk  40

Will list the record length of the first 40 records that are carriage return line feed delimited.


Top

Options

None


Top

Related Programs

Hexdump

Top