TO (REFORMAT) |
![]() ![]() ![]() |
The TO keyword used in a REFORMAT command specifies the name of the output file.
Format
TO new.file.name
where
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. |