Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

7.2.1 Sort option

When using the sort option, the following four types are available depending on the styles of input and output.

Form that uses file (including standard input and standard output) for both input and output

When the file (including standard input and standard output) is used for the input and the output, execute the following procedure.

  1. Issue the bsrtopen function.

  2. Issue the bsrtclse function.

Information

Specifying an input file path name (or standard input) and output file path name (or standard output) in parameters of the bsrtopen function makes this form.

Form that uses user application (bsrtput function and bsrtget function) for both input and output

When the user application (bsrtput function and bsrtget function) is used for the input and the output, execute the following procedure.

  1. Issue the bsrtopen function.

  2. Issue the bsrtput function.
    The bsrtput function is issued continuously until the record passed to PowerBSORT is lost.

  3. Issue the bsrtput function and notify the end of the records.

  4. Issue the bsrtget function.
    The bsrtget function is issued continuously from PowerBSORT to the notification of the end of the record.

  5. Issue the bsrtclse function.

Information

Not specifying an input file path name (or standard input) and output file path name (or standard output) in parameters of the bsrtopen function makes this form.

Form that uses file (including standard input) for input and user application (bsrtget function) for output

When the file (including standard input) is used for the input, and the user application (bsrtget function) is used for the output, execute the following procedure.

  1. Issue the bsrtopen function.

  2. Issue the bsrtget function.
    The bsrtget function is issued continuously from PowerBSORT to the notification of the end of the record.

  3. Issue the bsrtclse function.

Information

Specifying an input file path name (or standard input) and not specifying output file path name (or standard output) in parameters of the bsrtopen function makes this form.

Form that uses user application (bsrtput function) for input and file (including standard output) for output

When the user application (bsrtput function) is used for the input, and the file (including standard output) is used for the output, execute the following procedure.

  1. Issue the bsrtopen function.

  2. Issue the bsrtput function.
    The bsrtput function is issued continuously until the record passed to PowerBSORT is lost.

  3. Issue the bsrtput function and notify the end of the records.

  4. Issue the bsrtclse function.

Information

Not specifying an input file path name (or standard input) and specifying output file path name (or standard output) in parameters of the bsrtopen function makes this form.