Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

6.5.8 BSFSYS structure

The BSFSYS structure is a structure to specify the input file system.
The size of the area when the area of BSFSYS structure is secured can be calculated by using BS_INPFSYSSIZE(n). BS_INPFSYSSIZE(n) is a macro to calculate the size of BSFSYS structure with n pieces of input files system information.

typedef struct {
    unsigned long    entry_no;
    unsigned char    filesys[1];
} BSFSYS;

BSFSYS structure member

In the following, it explains about the member of the BSFSYS structure.

entry_no

This specifies the number of input file systems.

filesys[n]

This specifies the file system of input files.
A specification of input file system sets 1 input file as a file system of a file specified for file_addr[i] of BSFILE structure should be set in filesys[i]. When the number of input file systems is less than the number of input file path names, the file system specified at the end is applied to the file that remains. The file system that can be specified is shown below. When BSFS_COB1, BSFS_COB2, and BSFS_COB3 are specified for an definition value, it is necessary to define BSORT_FILESYS_fs of a startup file to associate the definition value with an actual file system. NetCOBOL file system can be specified for COBOL file system.

Define value

File system

BSFS_UFS

Native file system of the system (Default)

BSFS_COBS64

NetCOBOL file system (sequential file)

BSFS_COBP64

NetCOBOL file system (physical sequential file)

BSFS_COBR64

NetCOBOL file system (relative file)

BSFS_COBI64

NetCOBOL file system (indexed file)

BSFS_COB1

COBOL file system

BSFS_COB2

COBOL file system

BSFS_COB3

COBOL file system