TO   (REFORMAT)

Top  Previous  Next

 

The TO keyword used in a REFORMAT command specifies the name of the output file.

 

 

Format

 

TO new.file.name

 

where

 

new.file.nameis the name of an existing file into which the REFORMAT output is to be written.

 

 

If the TO keyword is not present, the REFORMAT command prompts for the file name.

 

 

Example

 

REFORMAT CUSTOMERS ZIP.CODE CUST.NO.NAME TO CUST.BY.ZIP

 

This command constructs a new file, CUST.BY.ZIP, keyed by zip code and containing two data fields, the customer number and name. Note that if two or more customers share the same zip code, the record will be overwritten by the second and subsequent items.