Example of storing values of the input records to variables and applying numeric operations to those values
By storing values of the input records to variables and applying numeric operations to those values, you can obtain, for example, the total, average, maximum and minimum values. In addition, by using post-process after all input records are loaded, you can output the total value and other values calculated by using variables, to the last records of the output file.
The following text explains a conversion example of adding average marks of the subjects (English, Science and math) to the last records of the respective subjects in the input file.