I was able to use RCDFMT on the CREATE table statement so all is well.
Thanks for the replies.
Todd
----- Forwarded by Todd Allen/Corp/Estes-Express on 2010-01-11 16:04 -----
Todd
Allen/Corp/Estes-
Express To
Web Enabling the AS400 / iSeries
2010-01-11 15:17 <web400@xxxxxxxxxxxx>
cc
Subject
Re: [WEB400] SQL RCDFMT(Document
link: Todd Allen)
The table is being created with an as-subquery and I don't see anywhere to
set the RCDFMT on that. Is that possible? That is why I am looking at the
ALTER statement. It would be ideal if the RCDFMT could be set on the
initial CREATE as-subquery.
Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx
CRPence
<CRPbottle@yahoo.
com> To
Sent by: web400@xxxxxxxxxxxx
web400-bounces@mi cc
drange.com
Subject
Re: [WEB400] SQL RCDFMT
2010-01-11 14:21
Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>
Not sure why that specifically-SQL question is asked here; much
more appropriate on Midrange-L.? Regardless, the answer is "No."
IIRC the CREATE TABLE statement supports RCDFMT for both clauses AS
subquery and LIKE table|view name; not to imply they are generally
acceptable to replace an ALTER, but may be for a single TABLE.
However the easiest and possibly most functional manner to change
the record format name is to use CREATE VIEW with the RCDFMT clause.
Then refer to the VIEW instead of the TABLE.
Regards, Chuck
TAllen@xxxxxxxxxxxx wrote:
Is it possible to set the RCDFMT on a DB2 i database table
with the SQL ALTER TABLE command?
This communication and any transmitted documents are intended to be confidential. If there is a problem with this transmission, please contact the sender. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
As an Amazon Associate we earn from qualifying purchases.