Recovering data

Note

The data formatting or data recovery concepts are identical for all of the products in the ARCAD-Transformer suite.

The data recovery managed in ARCAD Transformer Field has the objective to allow you to carry out the automatic execution of a process from a list of physical file fields. The process will be the same (or nearly the same) for each field on the list.

The process is executed by the programs generated by ARCAD (one program per file). This program declares the file as primary and in update (or as read only, if requested). Each file record is, therefore, read once.

The process to carry out for each field is found in the main part of the program. Each record is updated at the end of the process (if the file was open in update). Unlike other transformer processes, it is possible to use this command from a list of fields of physical files without source.

The data formatting commands can be used to:

  • fill in the extended part of fields (following an extension of a file’s fields). The previous data having already been copied (in *MAP *DROP, aligned on the left for an alphanumeric field, aligned on the point for a numeric field).
  • build the new fields (following a field addition in the files). The old data having already been copied (in *MAP *DROP).
  • carry out an update process (conversion) for the value of certain fields (In this case, there is no modification of the file structure).
  • carry out an update process (conversion) for the values of certain fields while keeping a trace, in an associated file, of the old field value (or the conversion difference.
  • automate the starting of a process which must be run for each one of the values in a complete series of physical file fields.
  • etc...

Using a standard routine written in RPGLE, you can describe (for one copy only) the process to carry out. It is also possible to create an associated file for each file processed.