How do I OPEN an MPE/iX KSAM file ?
You can OPEN the KSAM file as a Warehouse TEXT type. For example, opening a local KSAM file a.b.c read-only : OPEN handle TEXT a.b.c mode=r If you should see the following error when running a script that reads KSAM : 1> OPEN db REMOTE homer USER=qa/qa & 2> TEXT UCX01.QA.QA mode=r Finding homer.taurus.com… Trying 66.47.128.44 Connected to: Warehouse 2.07.3530-M on homer Unable to open file ‘UCX01.QA.QA’ using mode ‘r’: “Dynamic LOCKING was specified on a previous OPEN of this file, and dynamic LOCKING was not spec…” (WHERR 16021) then KSAM is telling us that it requires a file equation in the job stream before the execution of the Warehouse script. This is a requirement if an OPEN wants to access a KSAM file that has been previously defined as multi-job/user enabled, even if this particular OPEN is not interested in modifying the KSAM file. The file equation would take the form :