HP30003k Associates LogoHP3000/HP 3000 FAQ

Last Updated: Thursday, February 01, 2007 02:38 PM

HP3000 FAQ
MPE/V

HPe3000 FAQ
MPE/XL

HP 3000 FAQ
MPE/iX


KSAM on the HP3000

13.4. KSAM

13.4.1. Differences between KSAM/V and KSAM/iX (NM)

TBS
NM version much easier to use as a temporary work file from within     
Cobol programs - no need to KSAMUTIL etc.  I have used in 2 ways:
* consolidate bills of material from MM for homebrew backflush method,
* implement priority queue (to-do) list for system log-file processor.

In both cases (XL 3.0) could do easily as temp files - need file equation, then open as random - key stuff done by Cobol.

GS

You might want to include: KSAM/XL has the ;REUSE option. KSAM/V also has the ;REUSE option but it is undocumented, although widely used.

CF

Native Mode KSAM files (their file code will appear as KSAMXL when you do a :LISTF,2 on them) are attached to transaction management and will be automatically recovered to their last consistent point upon reboot. However, the old compatibility mode KSAM files that we know and hmmm... appreciate?, are *not* attached to transaction management and still must be recovered with KSAMUTIL. CM KSAM files can be distinguished by the fact that there are actually two files, the data file and the key file, that make up the logical CM KSAM file.


13.4.2. Fast ways to reorganize KSAM files


13.4.3. Fast way to erase a NM KSAM file

BT
  :FILE MYKSAM;SAVE                                                    
  :PURGE *MYKSAM


Back to FAQ Index Back to 3k Home Page
 
HP3000-L FAQ Collection (c) 3k Associates, Inc. 1996-2006