Hi, I want to know whether it is possible to assign a klist to a variable. I have a program that opens a different file depending on the parameters that are passed in. The key list for these files are different, the first is:
Keylist 1
Char(4)
Char(4)
Char(10)
Char(10)
Int(3)
And the second (a logical of the first) is similar:
Keylist 2
Char(10)
Char(4)
Char(4)
Char(10)
Int(3)
I need to perform a chain, setll and reade on whichever file is open. Is it possible to have a line such as: chain Key File ?
Where File is determined by the parameters passed in and Key is one of the key lists.
If so how do I define the variable Key so that it can either be Keylist 1 or Keylist 2?
I assume I can use extfile with usropn to determine which file to use.
Thanks
Keylist 1
Char(4)
Char(4)
Char(10)
Char(10)
Int(3)
And the second (a logical of the first) is similar:
Keylist 2
Char(10)
Char(4)
Char(4)
Char(10)
Int(3)
I need to perform a chain, setll and reade on whichever file is open. Is it possible to have a line such as: chain Key File ?
Where File is determined by the parameters passed in and Key is one of the key lists.
If so how do I define the variable Key so that it can either be Keylist 1 or Keylist 2?
I assume I can use extfile with usropn to determine which file to use.
Thanks




Comment