File Handling

Index

Table of Contents

!  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z 

!

No entries

A

Alternate keys  2.1.3.2 , 11.4.1 , 11.5.2.3
ANS85 Compiler directive  4.3 , 4.3.3 , 11.1.1
ASSIGN Compiler directive  11.1.2
ASSIGN"DYNAMIC" Compiler directive  3.2.2
Assigning filenames  3.2
        device names  3.4
        dynamic  3.2.2
        external  3.2.3
        keyboard  3.4
        printers  3.4
        screen  3.4
        static  3.2.1
Assigning files
        dynamically  11.1.2
        externally  11.1.2
Automatic record locking  5.2.1.2

B

Byte stream file routines  Ch12
        close  12.2.2
        create  12.2.2
        flush  12.2.2
        free record lock  12.2.2
        get record lock  12.2.2
        open  12.2.2
        read  12.2.2
        sample program  12.3
        test record lock  12.2.2
        write  12.2.2

C

-c Rebuild option  9.3.1
C-ISAM
        converting files  9.3.1 , 9.3.1
        IDXFORMAT Compiler directive  11.1.6
        Rebuild  9.3.1 , 9.3.1
Call-by-name routines
        See CBL_routines
Call-by-number routines  10.3
Callable Rebuild  9.8
Callable Sort Module  Ch13
        call interface  13.1
        FCD  13.1.2
        file definition block  13.1.2.2
        function code parameters  13.1.1
        key definition block  13.1.2.1
CALLFH Compiler directive  7.6.1
CBL_CHANGE_DIR  10.3
CBL_CHECK_FILE_EXIST  10.3
CBL_CLOSE_FILE  12.2.2
CBL_COPY_FILE  10.3
CBL_CREATE_DIR  10.3
CBL_CREATE_FILE  12.2.2
CBL_DELETE_DIR  10.3
CBL_DELETE_FILE  10.3
CBL_FLUSH_FILE  12.2.2
CBL_FREE_RECORD_LOCK  12.2.2
CBL_GET_CURRENT_DIR  10.3
CBL_GET_RECORD_LOCK  12.2.2
CBL_JOIN_FILENAME  10.3
CBL_LOCATE_FILE  10.3
CBL_OPEN_FILE  12.2.2
CBL_READ_DIR  10.3
CBL_READ_FILE  12.2.2
CBL_RENAME_FILE  10.3 , 10.3
CBL_SPLIT_FILENAME  10.3
CBL_TEST_RECORD_LOCK  12.2.2
CBL_WRITE_FILE  12.2.2
CLOSE REEL  11.3
COBEXTFHBUF environment variable  6.4
Compiler
        files size limits  16.2
        index key limits  16.2
        SORT/MERGE operation limits  16.2
Compiler Directives
        ANS85  11.1.1
        DATACOMPRESS  11.1.5
        KEYCOMPRESS  11.1.5
        OPTIONAL-FILES  11.1.7
        RECMODE  11.1.8
        RM  11.1.9
        SEQUENTIAL  11.1.10
Compiler directives
        ANS85  4.3 , 4.3.3
        ASSIGN"DYNAMIC"  3.2.2
        CALLFH  7.6.1
        DATACOMPRESS  11.5.1
        FCDREG  7.3
        IDXFORMAT  6.2.1.1 , 11.1.6
        IDXFORMAT"4"  2.1.3.3
        IXNUMKEY  7.2.4.3
        KEYCOMPRESS  6.2.1.4 , 11.5.2
        SEQUENTIAL  2.1.1.1
        SIGN"EBCDIC"  8.3
Compression
        data  6.2.1.3 , 11.5.1
        DATACOMPRESS  11.1.5
        duplicate keys  6.2.1.4 , 11.4.2
        dynamically calling a routine  11.5.4.3
        key  11.5.2
        KEYCOMPRESS  11.1.5
        keys  6.2.1.4
        leading characters  6.2.1.4 , 11.5.2.2
        linking a routine  11.5.4.3
        Micro Focus routines  11.5.4.1
        routines  7.8
        run-length encoding  11.5.1
        trailing nulls  6.2.1.4
        trailing spaces  6.2.1.4 , 11.5.2.1
Configuration, file handling  Ch6
Configuration options
        COMMITFLUSH  6.2
        CONVERTSTATUS  6.2
        DATACOMPRESS  6.2
        DATAFILE  6.2 , 6.2
        EXPANDPOSITIONING  6.2
        EXPANDTAB  6.2
        FASTREAD  6.2
        FHREDIR  6.2
        FILEMAXSIZE  6.2
        FILEPOINTERSIZE  6.2
        IDXDATBUF  6.2
        IDXFORMAT  6.2
        IDXNAMETYPE  6.2
        IGNORELOCK  6.2
        INDEXCOUNT  6.2
        INSERTNULL  6.2
        INSERTTAB  6.2
        KEYCHECK  6.2
        KEYCOMPRESS  6.2
        LOCKTYPE  6.2
        MAINFRAMEPRINT  6.2
        NAMEOPTIONS  6.2
        NFSFILELOCK  6.2
        NODESIZE  6.2
        NOSEQCHECK  6.2
        OPENINPUTSHARED  6.2
        OSVSREWRITE  6.2
        READSEMA  6.2
        RELDATBUF  6.2
        RETRYLOCK  6.2
        RETRYOPEN  6.2
        RETRYTIME  6.2
        RUNITLOCKDETECT  6.2
        SEQDATBUF  6.2
        SKIPLOCK  6.2
        SPACEFILL  6.2
        STRIPSPACE  6.2
        SUPPRESSADV  6.2
        TRACE  6.2
        TRACEFILE  6.2
        WRITETHRU  6.2
configuration options, SKIPLOCK  5.2.3
Converting indexed files  9.6
Corrupt indexed files  9.5

D

-d Rebuild option  9.3.1
DATACOMPRESS Compiler directive  11.1.5 , 11.5.1 , 11.5.4.3
Delete
        directory  10.3
        file  10.3
Directory, getting current  10.3
Disk space, saving  11.5.2
Drive id, filenames  3.1
Duplicate keys  2.1.3.3
Duplicate Keys  11.4.2
Duplicate keys
        compression  6.2.1.4 , 11.5.2.3
Dynamic filename assignment  3.2.2

E

-e Rebuild option  9.3.1
Environment variables
        assigning filenames  3.2
        COBEXTFHBUF  6.4
        Rebuild command line  9.2
        TMP  8.2
        ulimit  11.2.4
Error messages
        mfsort  8.5
        Rebuild  9.10.1
Errors, Rebuild  9.10.1.2
Expand path  10.3
Extended file status codes  4.4
External filename assignment  3.2.3
ExtFH  Ch7
EXTFHBUF environment variable  6.4.1
Extsm
        call interface  13.1
        FCD  13.1.2
        file definition block  13.1.2.2
        function code parameters  13.1.1
        key definition block  13.1.2.1

F

-f Rebuild option  9.3.1
FCD  7.2.1
        accessing  7.3
        Callable Sort Module  13.1.2
FCDREG Compiler directive  7.3
Fields instruction, mfsort  8.3.1
File
        buffers  6.4
        Byte stream I/O  Ch12
        COBOL compiler limits  16.2
        handle  11.2
        header  14.3
        indexed  2.1.3
        indexed file size limits  16.4.1
        introduction  Ch1
        limit to number of index keys at run-time  16.3
        limit to number of records at run-time  16.3
        limit to record size at run-time  16.3
        limit to simultaneously open at run-time  16.3
        limits  Ch16
        line sequential  2.1.1.2
        merging  Ch8
        naming  Ch3
        operating system limits  16.5
        organization  2.1
        printer sequential  2.1.1.3
        record sequential  2.1.1.1
        relative  2.1.2
        relative file size limits  16.4.2
        run-time limits  16.3
        sequential  2.1.1
        sequential file size limits  16.4.2
        size  6.2.1.1
        size limits  16.4
        sorting  Ch8
        striping  6.2.1.2
        structures  2.3 , Ch14 , 14.1
File Control Description  7.2.1
File handle, limits  16.1
File Handler  Ch7
        calling  Ch7
        COBOL compiler limits  16.2
        component definition area  7.2.4.3
        creating a new index file  7.7
        creating file-type specific  7.6.2
        data structures  7.2
        FCD  7.2.1
        FCD access  7.3
        filename area  7.2.3
        global information area  7.2.4.1
        indexed file size limits  16.4.1
        key definition area  7.2.4.2
        key definition block  7.2.4
        large files  6.2.1.1
        large indexed files  6.2.1.1
        limits  Ch16
        operating system limits  16.5
        operation codes  7.4
        record area  7.2.2
        relative file size limits  16.4.2
        relative byte addressing  7.5
        run-time limits  16.3
        sequential file size limits  16.4.2
        size limits  16.4
        special operation codes  7.4
        standard operation codes  7.4
        striping  6.2.1.2
File handler, creating your own  7.6
File handling
        COBOL compiler limits  16.2
        file size limits  16.4
        indexed file size limits  16.4.1
        Library routines  Ch10
        limits  Ch16
        operating system limits  16.5
        relative file size limits  16.4.2
        run-time limits  16.3
        sequential file size limits  16.4.2
File handling directives
        ANS85  11.1.1
        ASSIGN  11.1.2
        CALLFH  11.1.3
        COBFSTATCONV  11.1.4
        DATACOMPRESS  11.1.5
        IDXFORMAT  11.1.6
        KEYCOMPRESS  11.1.5
        OPTIONAL-FILE  11.1.7
        RECMODE  11.1.8
        RM  11.1.9
        SEQUENTIAL  11.1.10
File header record, multiple reel  11.3.1
File routines, copy file  10.3
File status  Ch4 , Ch15
        ANSI 85  11.1.1
        ANSI'74  4.3.2
        ANSI'85  4.3.1
        code tables  Ch15
        conventions  4.3
        defining  4.2
        extended  4.4
        locking files  5.3
        Microsoft COBOL V2  4.3.3
        RM  11.1.9
        RM/COBOL  15.1.1
File Striping, headers  6.2.1.2
File striping  6.2.1.2
        examples  6.2.1.2
        naming conventions  6.2.1.2
        options  6.2.1.2
File types, optional  11.1.7
Filename
        joining  10.3
        splitting  10.3
Filename mapping, pipes  3.4.1
Filenames  Ch3
        assigning  3.2
        conventions  3.1
        drive id  3.1
        format  3.1
        mapping  3.3
        pathnames  3.1

G

No entries

H

Header record, multiple reel files  11.3.1

I

-I Rebuild option  9.3.1
IDXFORMAT Compiler directive  6.2.1.1 , 11.1.6
IDXFORMAT"4"  9.3.1 , 11.4.2
IDXFORMAT"4" Compiler directive  2.1.3.3
IDXFORMAT"4" format files  9.3.1
IDXFORMAT"8"  9.3.1
IDXFORMAT"8" format files  9.3.1
Index key
        compilation limits  16.2
        limit to number at run-time  16.3
Indexed files  2.1.3
        access  2.1.3.5
        alternate keys  2.1.3.2 , 2.1.3.3
        converting  9.6
        corrupt  9.5
        creating a new index file  7.7
        keys  2.1.3.1
        large  6.2.1.1
        primary keys  2.1.3.1
        rebuilding  9.5
        reorganizing  9.4
        sparse keys  2.1.3.4 , 11.4.1
        validating  9.7
Introduction  Ch1
IXNUMKEY Compiler directive  7.2.4.3

J

No entries

K

-k Rebuild option  9.3.1
Key
        alternate  11.5.2.3
        compression  11.5.2
        duplicates  11.4.2
Key definition block, Callable Sort Module  13.1.2.1
Key instruction, mfsort  8.3.2.3
Key of reference  9.3.1
KEYCOMPRESS Compiler directive  6.2.1.4 , 11.1.5 , 11.5.2
Keys, indexed files  2.1.3.1

L

Large files  6.2.1.1 , 6.2.1.1
Leading character compression  11.5.2.2
LEVEL II COBOL files  9.3.1
LEVEL II format files  9.3.1
Library routines
        CBL_GET_CURRENT_DIR  10.3
        CBL_JOIN_FILENAME  10.3
        CBL_SPLIT_FILENAME  10.3
        change directory  10.3
        check file  10.3
        create directory  10.3
        current directory, get  10.3
        delete directory  10.3
        delete file  10.3
        file handling  Ch10 , 10.3
        locate file  10.3
        rename file  10.3
        X"91"function 47  10.3
        X"91"function 48  10.3
        X"91"function 49  10.3
        X"91"function 52  10.3
        X"91"function 53  10.3
Limits
        COBOL compiler for files  16.2
        file handle  16.1
        File handling  Ch16
        file sizes  16.4
        indexed file sizes  16.4.1
        operating system for files  16.5
        relative file sizes  16.4.2
        run-time for files  16.3
        sequential file sizes  16.4.2
Line sequential files  2.1.1.2
Locate file  10.3
Locking  Ch5
        example application  5.4
        file status codes  5.3
        records  5.2

M

Manual record locking  5.2.1.1
Mapping filenames  3.3
        multiple paths  3.3.1
MERGE, compilation limits  16.2
Merging files  8.1
Mfsort  8.1
        error messages  8.5
        examples  8.4
        field types  8.3.1.1
        fields instruction  8.3.1
        input files  8.3.2
        instructions  8.3
        output files  8.3.2
        record instruction  8.3.2.1
        workfile  8.2
Mode, sharing  5.1
MS2 Compiler directive  4.3.3
Multiple record locking  5.2.2.2
Multiple reel files  11.3
        header record  11.3.1 , 11.3.1

N

-n Rebuild option  9.3.1
N RTS switch, nulls in line sequential files  6.3.2
Networks, file handling limits  11.2.3
Nulls
        disable insertion  10.3
        enable insertion  10.3

O

-o Rebuild option  9.3.1
Operation code
        special  7.4.2
        standard  7.4.1
Operation codes, file handler  7.4
OPTIONAL-FILE Compiler directive  11.1.7
Org instruction, mfsort  8.3.2.2
Organizations  2.1
        indexed  2.1.3
        line sequential  2.1.1.2
        printer sequential  2.1.1.3
        record sequential  2.1.1.1
        relative  2.1.2
        sequential  2.1.1
Overview  Ch1

P

Path, expand  10.3
Pathnames  3.1
Pipes, filenames  3.4.1
Primary key  2.1.3.1
Printer sequential files  2.1.1.3

Q

-q Rebuild option  9.3.1

R

-r Rebuild option  9.3.1
Rebuild  Ch9
        callable  9.8
        command line  9.2
        define record length/recording mode  9.3.1
        error messages  9.10.1
        errors  9.9 , 9.10.1.2
        file compression  9.3.1
        index format  9.3.1
        information  9.3.1 , 9.3.1
        input file format  9.3.1
        key of reference  9.3.1
        key structure  9.3.1
        next record  9.3.1
        options  9.3 , 9.3.1
        parameter files  9.2.1
        quick  9.3.1
        record count  9.3.1
        record lengths  9.3.1
        recording mode  9.3.1
        redirecting information  9.2.2
        report duplicates  9.3.1
        specify organization  9.3.1
        system parameters  9.2.3
        validate file  9.3.1
        warning messages  9.10
Rebuild options
        -c  9.3.1
        -d  9.3.1
        -e  9.3.1
        -f  9.3.1
        -I  9.3.1
        -k  9.3.1
        -n  9.3.1
        -o  9.3.1
        -q  9.3.1
        -r  9.3.1
        -s  9.3.1
        -t  9.3.1
        -v  9.3.1
        -x  9.3.1
RECMODE Compiler directive  11.1.8
Record
        limit to size at run-time  16.3
        terminator  10.3 , 10.3
Record instruction, mfsort  8.3.2.1
Record locking  5.2
        automatic  5.2.1.2
        manual  5.2.1.1
        multiple  5.2.2.2
        releasing locks  5.2.4
        single  5.2.2.1
Record sequential files  2.1.1.1
Relative byte addressing  7.5
        delete a record  7.5.3
        read a record  7.5.1
        rewrite a record  7.5.2
Relative files  2.1.2
Releasing locks  5.2.4
Rename file  10.3
Reorganizing indexed files  9.4
RM Compiler directive  11.1.9
RM/COBOL, file status  15.1.1
RTS switches, file handling  6.3
Run-length encoding  11.5.1
Run-time
        files size limits  16.3
        limit to number of index keys in file  16.3
        limit to number of records in file  16.3
        limit to record size  16.3
        limit to simultaneously open files  16.3

S

-s Rebuild option  9.3.1
Sequential, files  2.1.1
SEQUENTIAL Compiler directive  11.1.10
Sharing files  Ch5
Sharing mode  5.1
SIGN"EBCDIC" compiler directive  8.3
Single record locking  5.2.2.1
SKIPLOCK configuration option  5.2.3
SORT, compilation limits  16.2
Sorting
        Callable Sort Module  Ch13
        Extsm  Ch13
Sorting files  Ch8
        command line  8.1
        Mfsort  8.1
Sparse keys  2.1.3.4 , 11.4.1
Special operation code  7.4.2
        add key value  7.4.2
        create index file  7.4.2
        file information  7.4.2
        flush file  7.4.2
Special operation codes
        file handler  7.4
        re-index file  7.4.2
        unlock record  7.4.2
Standard operation code  7.4.1
        close  7.4.1
        commit  7.4.1
        delete file  7.4.1
        file handler  7.4
        open  7.4.1
        read  7.4.1
        rollback  7.4.1
        start  7.4.1
        unlock  7.4.1
        write  7.4.1
Static filename assignment  3.2.1
Status, file status  Ch4
Striping  6.2.1.2
        examples  6.2.1.2
        headers  6.2.1.2
        naming conventions  6.2.1.2
        options  6.2.1.2
Structures  2.3 , 14.1
        file  Ch14
        line sequential  14.2.1
        printer sequential  14.2.2
        variable  14.3
Switches
        N nulls in line sequential files  6.3.2
        RTS  6.3
        T tabs in line sequential files  6.3.3

T

-t Rebuild option  9.3.1
T RTS switch, tabs in line sequential files  6.3.3
Tab, enable insertion  10.3
Tab insertion, enable  10.3
TMP environment variable  8.2
Trailing spaces, compression  11.5.2.1

U

ULIMIT environment variable  11.2.4

V

-v Rebuild option  9.3.1
Validating an indexed file  9.7
Variable length records  11.1.8

W

Workfile, mfsort  8.2

X

-x Rebuild option  9.3.1
X"91"
        function 46  10.3
        function 47  10.3
        function 48  10.3
        function 49  10.3
        function 52  10.3
        function 53  10.3

Y

No entries

Z

No entries