Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

7.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.

Define value

File system

BSFS_DOSFS

Native file system of the system (Default)

BSFS_COBS

NetCOBOL file system (sequential file)

BSFS_COBS64

NetCOBOL file system (BSAM-compatible sequential file)

BSFS_COBR

NetCOBOL file system (relative file)

BSFS_COBI

NetCOBOL file system (indexed file)

BSFS_MFCS

Micro Focus COBOL file system (sequential file)

BSFS_MFCR

Micro Focus COBOL file system (relative file)

BSFS_MFCI

Micro Focus COBOL file system (indexed file)

BSFS_BTRV

Btrieve file system

Note

  • PowerBSORT cannot access files opened by the NetCOBOL file system in exclusive mode. In addition, if the NetCOBOL file system (indexed file) is specified, PowerBSORT cannot access files opened by the NetCOBOL file system in shared mode. For more details on shared mode and exclusive mode, refer to the documentation of your NetCOBOL file system.

  • Even if the NetCOBOL file system (BSAM-compatible sequential file) is specified, if your NetCOBOL file system is not compatible, files are handled as NetCOBOL file system (sequential file). For details on BSAM compatibility, refer to the documentation of your NetCOBOL file system.

  • If the NetCOBOL file system (BSAM-compatible sequential file) is specified, record exclusivity may not be maintained, depending on the NetCOBOL file system.

  • Micro Focus COBOL file system (indexed file) can be specified only for the file system of the input file.

  • A Micro Focus COBOL indexed file in which data is compressed cannot be specified for the input file.