Using KSAM/XL and KSAM 64 (32650-90886)

Figures
7
Figure 1-1.. General Representation of the KSAM Format . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 1-2.. A Simplified View of the KSAM File Structure. . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 1-3.. Simple Index Tree Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 2-1.. Creating a KSAM XL file using the OPTMBLK parameter. . . . . . . . . . . . . . 22
Figure 2-2.. Creating a KSAM 64 file using the OPTMBLK parameter . . . . . . . . . . . . . . 22
Figure 2-3.. Creating a KSAM XL file with data block size set at 4K bytes (default). . . . 22
Figure 2-4.. Creating a KSAM 64 file with data block size set at 4K bytes (default) . . . . 23
Figure 2-5.. Building the AR Master KSAM XL File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 2-6.. Building the AR Master KSAM64 File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 2-7.. Using a Key Data File to Create a KSAM XL File . . . . . . . . . . . . . . . . . . . . . 24
Figure 2-8.. Using a Key Data File to Create a KSAM 64 File. . . . . . . . . . . . . . . . . . . . . . 24
Figure 2-9.. KSAM Parameter Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 2-10.. KSAM Parameter Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 3-1.. File Type Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 3-2.. File Information Display for a KSAM XL File. . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 3-3.. File Information Display for a KSAM64 File. . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 3-4.. Key Information Display for a KSAM XL File. . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 3-5.. Key Information Display for KSAM64 File . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 4-1.. Opening an Existing KSAM File with HPFOPEN. . . . . . . . . . . . . . . . . . . . . 40
Figure 4-2.. Opening a New KSAM File with HPFOPEN . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 4-3.. Opening a New KSAM XL File with FOPEN . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 5-1.. FFINDN Intrinsic Sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 5-2.. FFINDBYKEY Intrinsic Sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Figure 5-3.. Partial Key Search Sample. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 5-4.. Accessing a Record by Key Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 7-1.. Index Corruption Recovery for a KSAMXL File . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 7-2.. Index Corruption Recovery for a KSAM64 File. . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 9-1.. Foption Bit Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Figure 9-2.. Aoption Bit Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Figure 9-3.. FGETKEYINFO Parameter Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Figure 9-4.. FGETKEYINFO Control Parameter Format. . . . . . . . . . . . . . . . . . . . . . . . . 107
Figure 9-5.. Foption Bit Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Figure 9-6.. FOPEN KSAM Parameter Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Figure 9-7.. HPFOPEN KSAM Parameter Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Figure A-1.. Filetable Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Figure A-2.. Representation of KSAMFILE Used in COBOL Examples . . . . . . . . . . . . . 184
Figure A-3.. Procedures Allowed for Input/Output Type/Access Mode Combinations . . 195
Figure A-4.. Sequential Write Using COBOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Figure A-5.. Sequential Read Using COBOL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221