SA_IsiPrep
A file must be created or opened prior to any attempt to process data against it. SA_IsiPrep creates a new data file and associated index file. If either the specified data or index file exists, they will be deleted prior to creating the new files.
SA_FH SA_IsiPrep ( char *TxtName,
u32 TxtNameLen, char *IsiName,
u32 IsiNameLen,
u32 RecLen, char *OptKeyList,
u32 OptKeyListLen, u32 OpenMode
);
Note the following:
Upon success of the function, the open file handle is returned.
There is no implied close of an open file. If a file is opened and the file handle is used again in a subsequent open or prepare, the first file will remain open for the duration of the program.
The maximum record length supported is:
32,767 - 1 - sizeLEOR
Valid options in {optkeylist} are:
|
Option |
Meaning |
|
N |
Disallows duplicate keys. |
|
U |
Specifies non-case sensitive searches. |
|
W |
Write at end of file. |
The key field list form is:
key1start-key1end,...,keyNstart-keyNend
An example {optkeylist} is as follows:
"D,U,1-14,51-65,17,20"
Single character keys are allowable.
The aggregate key length must not exceed ninety-six (96) characters.
Function return codes are as follows:
|
Value |
Meaning |
|
+nn |
Success (file handle). |
|
-nn |
Error as described in Sunaccess Errors |
![]() |