Autoshuf

Description:

"Autoshuf" synchronizes filePro key and data segments to match a revised map file. "Autoshuf" is a valuable tool for adjusting the filePro data to a revised map file that you have created on another system. As a developer, you often have a need to change a file definition to extend a field length, add a new field, or apply another edit in the "TYPE" column. These same changes will invariably be needed on several clients' systems. Prior to this utility, you would be forced to dial in to the clients system or go on-site to make the map change on each system and wait for files to be re-structured. With autoshuf, you can copy the new map file to map.new, install on your customers' systems and run autoshuf to expand or shrink the key and data segments. The beauty of the program is that it will run unattended in a batch or script file, so you can create upgrade routines and forward to customers on floppy (or other removable media) or e-mail your map changes.

Procedure:

Anytime a map change is made, copy the map from the applicable filePro directory on the source system to map.new in the same filePro directory on the target system.

Note: DO NOT COPY the map or map.tmp files from the source system into the target system, or your data on the target system will not be usable. Run autoshuf "filename" where "filename" is the filePro directory that map.new has been copied into on the target system. When autoshuf finishes, your map and map.tmp on the target system will be identical to "map.new".

Syntax:

autoshuf filename

where filename is the filePro directory where you copied "map.new".

Troubleshooting:

Check Environment & Path - If autoshuf fails to run or does not restructure your data, you may not have set your environment and path properly. The same environment variables required to run filePro are required for autoshuf to work properly.

Check for map.new - Make sure that you copied "map.new" to the correct filePro directory.