Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

4.2.3 Define option (-define)

This defines arbitrary mnemonic names for field definition and file path names.
The arbitrary mnemonic names defined in this option can be used in other options.

Format

-define keyword=word-definition [ keyword=word-definition ...][ -define ...]

keyword=word-definition

Describe keyword in the alphanumeric characters to which @ is put to the first character.
The character string defined in keyword is specified for word-definition.

Note

  • The left-hand part of the operand (for instance, key) that specifies values in option names (for instance, -sort) and equals sign (=) cannot be specified for word-definition.

  • When two or more mnemonic names are defined, they are replaced in the specified order. Therefore, when you define other mnemonic names including a certain mnemonic name, note that because the result changes by the specified order of the mnemonic names.

    Example 1)

    Before the replacement

    -define @HOK=hoken\hoken1.dat @HOKEN2=hoken\hoken2.dat
    -input file=@HOKEN2

    After the replacement

    -input file=hoken\hoken1.datEN2

    Example 2)

    Before the replacement

    -define @HOKEN2=hoken\hoken2.dat @HOK=hoken\hoken1.dat
    -input file=@HOKEN2

    After the replacement

    -input file=hoken\hoken2.dat

Example

-define @HOKEN1=hoken\hoken1.dat
        @HOKEN2=hoken\hoken2.dat
        @HOKEN34=hoken\hoken3.dat,hoken\hoken4.dat
        @NAME=12.8asc
        @AGE=20.2fbi
-sort key=@AGEr,@NAMEa
-input file=@HOKEN1,@HOKEN2 include=@AGE.ge.d30