int KISAMCreateFile(char *szModule, char *szCompany, char *szName, long nRecs, int nRecLen, int nExtent, int nType, int nPacking, int nBlocklen)
Parameter | Type | Purpose |
szModule | char * | Two character module code e.g. "MK" |
szCompany | char * | Two character company code e.g. "01" |
szName | char * | Five character table name |
nRecs | long | Maximum number of records required |
nReclen | int | Maximum length of row buffer. Set to zero if you want KISAM to deduce this. |
nExtent | int | Extent size. Set to zero to let KISAM choose. |
nType | int | KISAM table type (4, 5, 6 or 7). Set to zero to let KISAM choose this. |
nPacking | int | Packing density for index blocks expressed as a percentage. This is used to size the index and to allow for block splitting during inserts. Tables that are volatile should use say 50 and static tables should use 100. Set to zero if you want KISAM to guess for you. |
nBlockLen | int | Index block size expressed as a number between 1 and 16. Tables with indices with long keys would benefit from bigger blocksizes. KISAM will compensate if oversized. Pass zero for default. |
This function will create an instance of a table in the Rev7 or Rev8 environment provided a data dictionary definition of the table exists for that name and module. The location of the dictionary and the location in which the file is created will be deduced from the environment. Generally this will mean that minimally $HOME must exist. Most of the numeric parameters should be passed as defaults of zero with the exception of the number of records for the initial extent.