The input to the application was a specification of files and the kind of sort and merge operations to use, and the output would be machine code for performing the specification.
The input to the application included specifications regarding files, sort operations, merge operations, and the output was executable instructions for carrying out those specifications.