David,
Sorry, I should have verified the syntax before sending. This is a statement I have used.
Create table rcheva1d/CVLNP505 like BNKPRD08/LNP00505
including column defaults
I see from some of the other posts that a date field may be the issue. We use very few date type fields so I don't know if this will help if a date field is the root cause.
HTH,
Rick
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David FOXWELL
Sent: Thursday, December 13, 2007 9:43 AM
To: Midrange Systems Technical Discussion
Subject: RE: creating a table like a PF with the same record level id
Thanks Rick,
Could you give me the whole statement, "with column defaults" doesn't seem to be the right syntaxe.
-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Rick.Chevalier@xxxxxxxxxxxxxxx Envoyé : jeudi 13 décembre 2007 16:30 À : midrange-l@xxxxxxxxxxxx Objet : RE: creating a table like a PF with the same record level id
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.
--
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.
--
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.
As an Amazon Associate we earn from qualifying purchases.