Example to output the record to a file according to the comparison result
By referencing the values stored in the variables and comparing the value of the field with that of the previous input record in the extraction condition, records can be output to a file according to the comparison result.