HP 3000 Manuals

HP SRC/XL and KSAMXL Files [ COMMUNICATOR 3000/XL XL RELEASE 2.1 ] MPE/iX Communicators


COMMUNICATOR 3000/XL XL RELEASE 2.1

HP SRC/XL and KSAMXL Files 

by Jan Merrill 
Santa Clara Information Systems Division 

HP SRC/XL supports both Compatibility Mode KSAM and the new Native Mode
KSAMXL file types.  The new KSAMXL file format consists of just one file
instead of the two files needed for the old KSAM file format.  Files of
both KSAM types can be checked into an HP SRC environment as differenced
files, which allows the ADDDIFF, CHGDIFF, and DELDIFF commands to be used
on KSAM and KSAMXL files.

To maintain the different revisions of KSAM and KSAMXL files, all
revisions under a specific filename in an HP SRC environment must be of
one format.  That is, once a file has been checked in as a KSAM or a
KSAMXL file, each subsequent revision of that file checked in must be of
the same file type.

CONVERTING KSAM TO KSAMXL FILES IN HP SRC/XL 

The following procedure can be used to convert KSAM files to KSAMXL,
while retaining all of the revision information and all existing
revisions of the original file under a different HP SRC file name.  In
the example, FILE1 is an old format KSAM file containing several
revisions in an HP SRC environment.  The procedure will save the old file
as FILE1CM, and create a new KSAMXL file from the latest revision of the
old KSAM file.  The new file will be built with the name of FILE1.

   1.  Make sure that the old data and key files are not in the working
       group:

       :PURGE FILE1
       :PURGE FILE1K

   2.  Save the old files and revisions under another name:

       :COPYDELTA FILE1,FILE1CM

   3.  Check out a copy of the head revision of the old file:

       :COPYREV FILE1CM

   4.  Build a KSAMXL file with the original filename and copy the data
       from the old file to the new file:

       :FCOPY FROM=FILE1CM;TO=(FILE1);NEW

   5.  Purge the old file from the HP SRC environment:

       :DELREV FILE1,ALL

   6.  Check in the new KSAMXL file with the same revision number as the
       original file:

       :CHKIN FILE1,1.7

   7.  Purge the old file from the working group:

       :PURGE FILE1CM

At the end of this procedure, two files will exist in the HP SRC
environment:

FILE1CM - original KSAM file with all revisions to date.
FILE1 - KSAMXL file containing only the latest revision; this file can be
used for future revisions.

Note that to transfer KSAMXL files to MPE V/E systems, the files must be
converted to KSAM by using FCOPY.



MPE/iX Communicators