When using the merge option, the following four types are available depending on the styles of input and output.
Form that uses file (including standard output) for both input and output
When the file (including standard output) is used for the input and the output, execute the following procedure.
Issue the bsrtopen function.
Issue the bsrtclse function.
Information
Specifying an input file path name and output file path name (or standard output) in parameters of the bsrtopen function makes this form.
Form that uses user application (bsrtmrge function) for both input and output
When the user application (bsrtmrge function) is used for the input and the output, execute the following procedure.
Issue the bsrtopen function.
Issue the bsrtmrge function.
The bsrtmrge function is issued continuously from PowerBSORT to the notification of the end of the record. In the bsrtmrge function in this form, there are 2 functions: one passes records from the user application to PowerBSORT and the other one receives records from PowerBSORT. In issuing the bsrtmrge function, the record of individual string (record group that have been sorted) is passed and the records to be returned from PowerBSORT are received. When the end of the record is notified to all the strings in process, bsrtmrge function is issued continuously until the end of the record is notified even if there is no record to be passed and the record to be returned from PowerBSORT is received.
The bsrtclse function is issued at the end if the end of the record is notified from PowerBSORT.
Information
Not specifying an input file path name and output file path name (or standard output) in parameters of the bsrtopen function makes this form.
Form that uses file for input and user application (bsrtmrge function) for output
When the file is used for the input, and the user application (bsrtmrge function) is used for the output, execute the following procedure.
Issue the bsrtopen function.
Issue the bsrtmrge function.
The bsrtmrge function is issued continuously from PowerBSORT to the notification of the end of the record. The bsrtmrge function in this form functions to receive records from PowerBSORT.
The bsrtclse function is issued at the end if the end of the record is notified from PowerBSORT.
Information
Specifying an input file path name and not specifying output file path name (or standard output) in parameters of the bsrtopen function makes this form.
Form that uses user application (bsrtmrge function) for input and file (including standard output) for output
When the user application (bsrtmrge function) is used for the input, and the file (including standard output) is used for the output, execute the following procedure.
Issue the bsrtopen function.
Issue the bsrtmrge function.
The bsrtmrge function is issued continuously from PowerBSORT to the notification of the end of the record. The bsrtmrge function in this form functions to pass PowerBSORT the record. In issuing the bsrtmrge function, the record of individual string is passed and the end of the records is notified when the records of the string have been lost. When the end of the record is notified to all the strings in process, the function is continuously issued until PowerBSORT notifies the end of the record even if there is no record to be passed.
The bsrtclse function is issued at the end if the end of the record is notified from PowerBSORT.
Information
Not specifying an input file path name and specifying output file path name (or standard output) in parameters of the bsrtopen function makes this form.