Hallo,

habe folgende Frage....
ich möchte eine Datei erstellen und dabei eine vorhandene Referenzdatei benutzen.
Das erste Feld eine SatzId ist allerdings nicht in der Referenzdatei und soll
eine auto-increment Feld sein.

Also eine Kombination aus:

CREATE TABLE MyLib/MyFile (
AD0SID DEC(9, 0) NOT NULL GENERATED ALWAYS AS IDENTITY
(START WITH 1
INCREMENT BY 1
CYCLE
MAXVALUE 999999999),
......

und


CREATE TABLE MyLib/MyFile AS
(SELECT HK1 AS AD0HK1,
HK2 AS AD0HK2
FROM MyLib/MyRef))
DEFINITION ONLY
INCLUDING COLUMN DEFAULTS
RCDFMT MyRecord;

Kann da jemand helfen?

Vielen Dank im Voraus.,,