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

184 AppendixA
COBOL Intrinsics
KSAM Logical Record Pointer
Sample KSAM File
The file KSAMFILE illustrated in Figure A-2. is used in all subsequent examples associated
with the COBOL procedure calls.
Figure A-2. Representation of KSAMFILE Used in COBOL Examples
:>BUILD KSAMFILE;REC=-74,3ASCII;KSAMXL;KEY=(B,3,20;&KEY=B,23,8,,DUP)
:>BUILD KSAMFILE;REC=-74,3ASCII;KSAM64;KEY=(B,3,20;&KEY=B,23,8,,DUP)
file creation command
character KSAMFILE Data Record halfword
1
1
23
3
31
73
37
reserved
NAME (primary key)
PHONE (alternate key)
OTHER DATA