Need a native way to create an ISAM file from a Repository file and structure definition
There should be a native way to create an ISAM file with a utility or from XCALL ISAMC by passing a File and Structure Definition from the Repository. Currently, we can write our own code to do it by using the Data Dictionary XCALL routines, but seems like this functionality should be built-in to the language since it is such a funamental concept to developing applications.

6/6/2016, 12:47 AM 0

6/15/2016, 3:40 PM 0
6/15/2016, 4:41 PM 0

I'll have a go with the codegen stuff, but it would be nice if ISAMC could accept a repository file name, pick up the keys and just create the file
11/27/2017, 3:56 PM 0

FIles which have alpha and decimal key fields work fine
11/27/2017, 4:11 PM 0

If that is not the issue then please email me the schema for the repository that you are using and tell me which files / structures fail.
11/27/2017, 5:25 PM 0

I installed the latest codegen last week
11/27/2017, 5:34 PM 0

- Apparently Repository lets you define illegal keys
- CreateFile isn’t trapping the “Illegal key specified” that is coming out of XCALL ISAMC
“Synergy DBMS automatically fills autokeys (SEQUENCE, TIMESTAMP, and CTIMESTAMP) with the appropriate values. A sequence key starts at 1 and is incremented in sequence for every record stored until the file is cleared with ISCLR. A sequence key cannot be descending. A record with autokeys passed to a STORE or WRITE statement will be updated to reflect the autokey values that were stored or written, unless a literal was passed. This allows you to retrieve the autokey values from the record without having to reread it. An autokey must be declared the appropriate size and cannot be modified, does not allow duplicates, cannot be a null key, and cannot be segmented or be a segment in a key with multiple segments. By default, autokey values are preserved (with the exception of a timestamp key where the incoming key data amounts to an empty key; in this case, all zeros, blanks, or nulls will be generated to the current timestamp).”
Sorry to be the bearer of bad news, but thanks for the heads up about the error handling issue in CreateFile, that will be fixed in the next release in the next couple of days. I'll also notify development about the issues in Repository.
11/27/2017, 6:36 PM 0