Points of concern about sharing and exclusion of the NetCOBOL file
When the NetCOBOL file is specified for an input file or an output file, PowerBSORT inputs and outputs the NetCOBOL file by using the NetCOBOL file system. Therefore, sharing and the exclusion of the file are controlled by the NetCOBOL file system. Open in the sharing mode when the input file is a NetCOBOL file. Open in the exclusion mode when using an output file. Refer to the manual of the NetCOBOL for details.
Points of concern about file access library for NetCOBOL sequential files and NetCOBOL physical sequential files
Two kinds of libraries are prepared in the file access library for a NetCOBOL sequential file and a NetCOBOL physical sequential file. The outline of processing of each file access library is as follows. Refer to the manual of NetCOBOL for details of BSAM in NetCOBOL.
File organization | File access library | Outline of processing |
---|---|---|
sequential file | libbscblrt64.so | Use the NetCOBOL file system to open, to close, and to input and output the file. It is low-speed because it inputs and outputs one record at a time. |
libbscblfast64.so | Use the NetCOBOL file system to open and to close the file. Use the read system call and the write system call to input and output the file. It is high-speed because it inputs and outputs bringing two or more records together. It is similar to BSAM in NetCOBOL. | |
physical sequential file | libbscblps64.so | Use the NetCOBOL file system to open, to close, and to input and output the file. It is low-speed because it inputs and outputs one record at a time. |
libbscblpsfast64.so | Use the NetCOBOL file system to open and to close the file. Use the read system call and the write system call to input and output the file. It is high-speed because it inputs and outputs bringing two or more records together. It is similar to BSAM in NetCOBOL. |
These file access libraries can be used properly by defining BSORT_FILESYS_fs of a startup file.
However, the following file access libraries can be used without defining BSORT_FILESYS_fs of a startup file when the following identifiers (bsort command or bsortex command) or the definition values (BSORT function) are specified.
File organization | Identifier | Definition value | File access library used |
---|---|---|---|
sequential file | cobs64 | BSFS_COBS64 | libbscblfast64.so |
physical sequential file | cobp64 | BSFS_COBP64 | libbscblpsfast64.so |
About NetCOBOL Line Sequential files
The NetCOBOL line sequential file can be processed as a text file in PowerBSORT.
Specify it as follows when you process the NetCOBOL line sequential file. However, note that file sharing and exclusive control of the NetCOBOL file system is not executed.
File system specifies "Native file system of the system".
For the bsortex command
filesys operand of Input file information option (-input) or filesys operand of Output file information option (-output)
For the bsort command
I/O file system option (-F)
For the BSORT function
inpfsys_tbl and outfsys of BSRTFILE structure
The input record format specifies "Text file fixed field specification".
For the bsortex command
recform operand of Input record information option (-record)
For the bsort command
Text file option (-T)
For the BSORT function
fieldmode of BSRTPRIM structure