Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

A.3 Examples of using C language program

The example of using the BSORT function is installed in the following places at each language (locale) used as a sample program.

Language

Directory of sample program

English

/opt/FJSVXbsrt/sample/C/

Japanese (Unicode)

/opt/FJSVXbsrt/sample/ja_JP.UTF-8/

Japanese (EUC)

/opt/FJSVXbsrt/sample/ja_JP.eucJP/

Makefile to compile sample1.c - sample8.c and the sample program is installed in the directory of the sample program. The outline of processing of each sample program is shown below.

Sample program

Outline of processing

sample1.c

Sort the record passed from the application program and return it to the application program.

sample2.c

Merge the record passed from the application program and return it to the application program.

sample3.c

Sort the record in the input file and output it to the output file.

sample4.c

Merge the record in the input files and output it to the output file.

sample5.c

Copy the record in the input file onto the output file.

sample6.c

Combine and process the record selection option, the record reconstruction option, and the record summation option to the sort function.

sample7.c

Sort the record in the text file and output it to the output file.

sample8.c

Combine and process a complex specified record selection option to the sort function.

The input file that the sample program uses is installed in the sample directory. Copy the input file in the current directory before executing the sample program. The list of the input file that each sample program uses is shown as follows.

Input file name

Sample program name

sortin

sample1.c, sample3.c, sample5.c, sample6.c

sortin.txt

sample7.c

selein

sample8.c

mergein1

sample2.c, sample4.c

mergein2

sample2.c, sample4.c