REFORMAT


 

The REFORMAT utility converts the internal disk format of text files. It also recovers lost disk space resulting from records deleted via AAM or ISAM. The command line for REFORMAT is:

 

 

REFORMAT [{input}],{output} [-{options}]

Parameters:
input
The optional input file name.
output
The required output file name.
options
Options described below that control the action of the REFORMAT program.

Note the following:

  1. If {input} is not specified, the user is prompted for the input file(s). When all files have been entered, terminate the list by entering an asterisk (*).

  2. If an extension is not given for {input} or {output}, TXT is assumed.

  3. REFORMAT first attempts to locate the {input} file(s) in the current path. If not found, a search of all search paths occurs.

  4. {output} is overwritten if it exists.

  5. The {input} and {output} files must be different files.

  6. {options} are as follows:

  7. B{n}

    Block the records in {output} {n} records per sector. The sector size is assumed to be 256 bytes.

    C

    The {output} file will be space compressed using the standard tab character (Hex 09). This is the default option.

    E={xx}

    Set the output End of Record Type to be {xx} where {xx} is one of CR, LF, CRLF, or LFCR.

    K

    Kill the input file(s) after completion of the REFORMAT.

    L{n}

    {output} records are to be written {n} bytes long.

    P

    Pack as many records into each 256-byte sector without crossing sector boundaries. The number of records in each sector may then be variable.

    R

    The {output} file is record compressed, but not space compressed.

    S

    Segment records longer than the specified length. Valid only if the 'L' option is also specified.

    T

    Truncate records longer than the specified length. Valid only if the 'L' option is also specified.

    Z

    Display the run time statistics including records in, records out, start time, and stop time.

    ?

    Display the REFORMAT help screen.

 

 

See Also: REFORMAT Examples, Utilities

 



System Utilities PXLATE SETDRIVE