David,
Try adding 'with column defaults' to the end of your create statement.
Rick
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David FOXWELL
Sent: Thursday, December 13, 2007 9:14 AM
To: Midrange Systems Technical Discussion
Subject: creating a table like a PF with the same record level id
Hi all,
I have, in the past, created an SQL table from a physical file with :
CREATE TABLE FORMATNAME AS ( SELECT * FROM FILENAME) WITH NO DATA
Then, RENAME TABLE FORMATNAME TO FILENAME so as to get the same record
level identifier.
This time I'm not getting the same record level identifier as the
original PF.
There are no keys on the PF
I've also tried CREATE TABLE FORMATNAME LIKE etc,
Now I have my original PF and 2 SQL tables each with a different record
level identifier.
If I run a DSPFFD, I see that a date zone has the format *ISO in the SQL
tables. In the original PF, it is *EUR.
One of the tables has default value information.
How can I get the right record level identifier ?
How can I get the right date format?
--
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,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.
As an Amazon Associate we earn from qualifying purchases.