Posted by Greg on April 29, 2007 at 19:57:27:
This is our first venture in 'Multi-Keyed' files and we need guidance.
This goes off without a hitch:
CREATE "CSM-1",600,K,9,1,DIR=ZCEM$ !!! master file
CreateKey 'CSM-1', 'CSCEM', 2, 10, Dir=ZCEM$
CreateKey 'CSM-1', 'CSROWNS', 5, 100, Dir=ZCEM$
CreateKey 'CSM-1', 'CSROWEW', 5, 105, Dir=ZCEM$
CreateKey 'CSM-1', 'CSNAME', 40, 142, Dir=ZCEM$
CreateKey 'CSM-1', 'CSSECT', 5, 95, Dir=ZCEM$
This is where problems come up...
CLOSE (2) & OPEN (2) 'CSM-1'
CLOSE (12) & OPEN (12) "CSM-1 ",KEY = 'CSSECT'
(error 54 happens here)
CLOSE (13) & OPEN (13) "CSM-1 ",KEY = 'CSNAME'
CLOSE (14) & OPEN (14) "CSM-1 ",KEY = 'CSROWNS'
CLOSE (15) & OPEN (15) "CSM-1 ",KEY = 'CSROWEW'
CLOSE (16) & OPEN (16) "CSM-1 ",KEY = 'CSCEM'