Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

1.4.2 Startup file

A startup file is a file that defines the default value of PowerBSORT.
Copy the model in user's home directory by the file name of ".bsortrc". The model of a startup file is installed in the following places.

/opt/FJSVXbsrt/config/BSORTRC

The startup file is in text format. Use the general text editor to change file contents. If the startup file contains identical features, the last entered specification is in effect. "#" indicates a comment line. In a model of startup file, all the definition values are the comment lines.
The following variables can be defined in the startup file.

Table 1.4 Definition value of startup file

Definition value

Meaning

BSORT_CHKLEVEL

Checking level

BSORT_FILESYS_fs

Definition of file system

BSORT_FIFO

FIFO (first-in, first-out) option

BSORT_MEMSIZE

Work area size

BSORT_MSGFILE

Message output file name

BSORT_MSGLEVEL

Message output level

BSORT_MSGSTYLE

Output form of message

BSORT_OUTFILE_FSYNC

Specify whether to issue fsync, before closing the output files of standard file system

BSORT_SIGNEDZERO

Whether or not +0 and -0 are treated as the same value

BSORT_SUMFILD

Define the command termination status when a character other than numeric, signs, blank, or tab is found in text records summation field

BSORT_SUMOVER

Define the command termination status when an overflow occurs at the summation process

BSORT_SUMOVERCONT

Whether or not record summation continues after an overflow occurs

BSORT_SUMSHRT

Define the command termination status when the input records do not include the summation field during text input or variable-length records

BSORT_SYSLOG

syslog output

BSORT_TMPDIR

Temporary file directory name

BSORT_TOPYY

Defining the beginning year for data form of "two digit years"

BSORT_UCS2TYPE

Unicode UCS-2 format byte order

BSORT_UTF32TYPE

Unicode UTF-32 format byte order

BSORT_UNICODEBOM

Whether or not BOM is skipped

BSORT_CHKLEVEL={0 | 1}

The check option within PowerBSORT is specified.

Level

Meaning

0

Nothing checked (Default value)

1

Interface check with BSORT function is performed.

BSORT_FILESYS_fs=bslibname[:fslibname]

Defines the file system.

BSORT_FIFO={ON | OFF}

The FIFO (first-in, first-out) option is specified.

Specified value

Meaning

ON

When the value of the specified key field is the same, those records are output in input order. This is effective for the sort function. The specification of the fifo (first-in, first-out) option is disregarded when combined with the merge function, the copy function, the record summation option, and the suppression option.

OFF

The order of records with the same key may be different in the output file compared to the input file. (Default value)

BSORT_MEMSIZE=n

The size of the work area that PowerBSORT uses is specified in kilobytes.
The work area is specified within the range from 64 to 2097151 kilobytes. When 0 is specified, or specifying BSORT_MEMSIZE is omitted, the work area is automatically set. When the value of 2097152 or more is specified, 2097151 are assumed.
To run PowerBSORT efficiently, specify the memory size of 1/50 or more of the amount of input data. However, when the calculation value (1/50 of the amounts of input data) falls below 8192 kilobytes, 8192 kilobytes is recommended.

BSORT_MSGFILE=Message output file name

This specifies the file path name in which the message output by PowerBSORT is stored.
When a file name contains a blank, the file name need not be enclosed with double quotation (").

BSORT_MSGLEVEL={N | E | W | I | 0 | 1 | 2}

This specifies the level of messages output by PowerBSORT.

Level

Meaning

N

Nothing output.

E

Error messages are output.

W

Error messages and warning messages are output. (Default value)

I

Error messages, warning messages and information messages are output.

The following level can be specified for use with previous versions.

Level

Meaning

0

Nothing is output.

1

Error messages and warning messages are output. (Default value)

2

Error messages, warning messages and information messages are output.

BSORT_MSGSTYLE={1 | 2}

The output form of the message is specified.

Specified value

Meaning

1

Output the header, and the message text. This is the form output by the version before V5.

2

Output the header, the message type, the date, the message number, and the message text. (Default value)

BSORT_OUTFILE_FSYNC={ON | OFF}

Specify whether to issue fsync, before closing the output files of standard file system.

Specified value

Meaning

ON

fsync(2) is issued.

OFF

fsync(2) is not issued. (Default value)

BSORT_SIGNEDZERO={EFFECT | IGNORE}

For data that can be expressed as "+0" and "-0", specify whether "+0" and "-0" are to be treated as equivalent.

Specified value

Meaning

EFFECT

"+0" and "-0" are treated as different.

IGNORE

"+0" and "-0" are treated as equivalent. (Default value)

Information

  • The following data forms can be expressed as “+0” and “-0”:

    • Packed decimal number

    • External decimal number

    • Leading separate signed number

    • Trailing separate signed number

    • Leading overpunch signed number

    • Trailing overpunch signed number

    • When n(BSOPT_NUMERIC) is specified for an operation of the key field and the selection field at the text file.

    • When N(BSOPT_CHARNUM) is specified for an operation of the key field at the text file.

  • When EFFECT is specified, "+0" and "-0" becomes "+0">"-0".

  • The version before V5 operate as if EFFECT was selected.

BSORT_SUMFILD=n

Define the bsortex command or bsort command termination status when a character other than numeric, signs, blank, or tab is found in text records summation field.
An arbitrary integer value from 0 to 9 can be specified in n. When specification is omitted, 0 is assumed.

BSORT_SUMOVER=n

Define the bsortex command or bsort command termination status when an overflow occurs at the summation process.
An arbitrary integer value from 0 to 9 can be specified in n. When specification is omitted, 0 is assumed.

BSORT_SUMOVERCONT={ON | OFF}

Specify whether or not record summation continues after an overflow occurs.

Specified value

Meaning

ON

The record summated immediately before the overflow occurred is output and subsequent records with the same key field are summated as separate records. This is repeated whenever an overflow occurs.

OFF

The record summated immediately before the overflow occurred is output. Subsequent records with the same key field are not summated. (Default value)

BSORT_SUMSHRT=n

Define the bsortex command or bsort command termination status when the input records do not include the summation field during text input or variable-length records.
An arbitrary integer value from 0 to 9 can be specified in n. When specification is omitted, 0 is assumed.

BSORT_SYSLOG={N | E | W | I}

Specifies the level of messages output to the syslog by PowerBSORT.

Level

Meaning

N

Nothing output. (Default value)

E

Error messages are output.

W

Error messages and warning messages are output.

I

Error messages, warning messages and information messages are output.

BSORT_TMPDIR=Temporary file directory name[:Temporary file directory name...]

A directory name specifying where PowerBSORT temporary files are created.
When you process to sort the file of the amount that cannot be processed within the memory alone, a temporary file is created in a directory specified by BSORT_TMPDIR. When the specified directory name does not exist, it is an error. You can also specify two or more directory names by delimiting the directories by colon (:). Specifying two or more directory names in different file systems could prevent the error due to free space shortage. Do not put an unnecessary character string such as a blank before and behind the colon (:) when you specify two or more directory names.
The directory that makes the temporary file observes the order of precedence and is decided. Refer to "Priority level of the directory that creates the temporary file" for the priority level.

BSORT_TOPYY=yy

Define the beginning year for data form of "two digit years".
For instance, if BSORT_TOPYY=50 is specified, the effective range is from 1950 to 2049. The default value for yy is 60. BSORT_TOPYY is used when a data form of "two digit years" field is specified.

BSORT_UCS2TYPE={BIG_ENDIAN | LITTLE_ENDIAN}

Specify the Unicode UCS-2 format byte order.
Valid when the data format is set to UCS-2 using the PowerBSORT command line interface.

Specified value

Meaning

BIG_ENDIAN

Sets Big Endian.

LITTLE_ENDIAN

Sets Little Endian. (Default value)

BSORT_UTF32TYPE={LITTLE_ENDIAN | BIG_ENDIAN}

Specify the Unicode UTF-32 format byte order.
Valid when the data format is set to UTF-32 using the PowerBSORT command line interface.

Specified value

Meaning

BIG_ENDIAN

Sets Big Endian.

LITTLE_ENDIAN

Sets Little Endian. (Default value)

BSORT_UNICODEBOM={ON | OFF}

Specify whether or not the Unicode byte order marker, BOM, is skipped.
Valid when the input file is a text file and the code set of that file is Unicode (UCS-2, UTF-32, or UTF-8).
If a BOM exists in the input file and is skipped, a BOM is still inserted in the output file. If multiple input files are specified, a BOM exists in the first input file specified, and the BOM was skipped, a BOM is inserted in the output file.

Specified value

Meaning

ON

Skips the BOM. Note that, if the head of the file is anything other than a BOM, it is not skipped. (Default value)

OFF

Does not skip the BOM.