Today I tried to create a table only to discover that the SQL statement
doesn't appear to be supported. I checked the release and discovered this
particular system is at V5R1, much to my dismay. Upgrading to a new IBM i
might be a possibility, but before looking further into that the customer
wants to explore what the other possibilities are. Here is the statement
we're trying to run:
create table qs36f/PDFRPTP
(REPORT FOR RPID bigint generated always as identity(start with 1,
increment by 1, no order, no cycle, no minvalue, no maxvalue, cache 20),
DATA FOR RPDATA blob(2G),
REPORTDATE FOR RPDATE timestamp,
NAME FOR RPNAME varchar(128),
TYPE FOR RPTYPE char(4),
NEWREPORT FOR RPNEW char(1),
USERNAME FOR RPUSER varchar(128),
DELETED FOR RPDELETED char(1) not null,
ARCHIVED FOR RPARCHIVE char(1) not null,
PRIMARY KEY (RPID))
Running the statement results in:
Token GENERATED was not valid. Valid tokens: NO FOR NOT FILE WITH CCSID
CHECK UNIQUE DEFAULT PRIMARY.
Two options occur to me:
1. Is there a different syntax on V5R1 to accomplish the same thing?
2. Is there a PTF for V5R1 that gives the GENERATED capability? How would
I find out? Is it even still available?
if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
- Paul Davis on ardour-dev
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.