Page 1 of 1

copy vsam file with alternate index

Posted: Sat Nov 16, 2013 12:42 pm
by manswe1350
Hello,
I am trying to create a exact replica of vsam with alternate index.

I followed this steps:
1.I copied first a.vsam file to another b.vsam file
2. created b.aix
3 created b.path
4. build alternate index.

My base cluster is 100% matching, but when I am trying to compare the a.aix with b.aix, I am getting some unmatched records.
Unmatched records are coming due to order change, I checked the data and found its only sequence of data which is improper, I would like to know why this is occurring, Please let me know, if I missed any thing from my end to fulfill this task.
I am having a utility CA MASTER PLUS, I tried with batch as well as ca master plus utility.

DEFINE ALTERNATEINDEX
(NAME(TEST.XREFAIX)
RELATE(TEST.XREF)
CYL (10 2)
FREESPACE(30 10)
SHAREOPTIONS(2 3)
KEYS(39 39)
NONUNIQUEKEY
UPGRADE
RECORDSIZE(83 19544))
DATA
(NAME(TEST.XREFAIX.DATA)
CISZ(2048))
INDEX
(NAME(TEST.XREFAIX.INDEX))
DEFINE PATH
(NAME(TEST.XREF.PATH)
PATHENTRY(TEST.XREFAIX))
BLDINDEX INDATASET(TEST.XREF)
OUTDATASET(TEST.XREFAIX)

Please reply.

Posted: Mon Mar 16, 2015 4:38 pm
by yujinmermaid
yujinmermaid,

stop wasting our time
and board space
with your useless posts.

dbz

Posted: Mon Mar 16, 2015 7:24 pm
by dbzTHEdinosauer
manswe1350,

if you reorg your 'a' file first,
and then do the duplication (copy/build)
i imagine that both will be the same.

Posted: Tue Jul 26, 2016 4:42 pm
by Bookosweet
It is very useful me. Knowledge is very good for me.