Basically my fault. Was creating them with SQL only in mind as these were initially thought to only be used by .NET apps which do not rely on concepts like record format names.
Now, the DCL-F route is definitely the way out we will go with the other files :-) Or tell them to use embedded SQL :-)
-----Original Message-----
From: Rob Berendt [mailto:rob@xxxxxxxxx]
Sent: Thursday, February 16, 2017 9:05 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Change Record Format Name
Why are the tables created with the wrong record format name in the first place? Some favored database tool which doesn't support RCDFMT? Or are you just cleaning up numerous existing tables for those RPG programmers who cannot handle adding DCL-F MyFile RENAME(MyFile:MyFileR) To give it a different record format name?
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: Matt Olson <Matt.Olson@xxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 02/16/2017 09:43 AM
Subject: RE: Change Record Format Name
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I'll put in a requirement. The create table already has a rcdfmt option so
no need to do below option if you remember about the record format name.
The alter table rename however does not know about rcdfmt, but should.
Now I am stuck with creating new table, changing journaling properties,
setting up permissions, copying data from old table into new table,
deleting old table.
Not an efficient use of time I have to say.
-----Original Message-----
From: Roger Harman [mailto:roger.harman@xxxxxxxxxxx]
Sent: Wednesday, February 15, 2017 6:27 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: Change Record Format Name
That's the way I've done it on a recent project.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Peter Dow
Sent: Wednesday, February 15, 2017 2:35 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Change Record Format Name
Hi Matt,
No way to rename it after the fact, however, if you're stuck on an old
system without the RCDFMT keyword on the CREATE TABLE statement, the work
around was to create the table with name of the record format, then after
it was created, rename the table as the actual table name.
For example,
CREATE TABLE myRcdFmt...
RENAME TABLE myRcdFmt TO myTable
--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx> pdow@xxxxxxxxxxxxxx <
mailto:pdow@xxxxxxxxxxxxxx>
/
On 2/15/2017 11:24 AM, Matt Olson wrote:
All,
What is the rename command to change a record format name?
We have this SQL available to change the SQL Long Name, SQL Short Name
(System Name), but I don't see RCDFMT name.
Example:
RENAME TABLE LongName TO LongTableName FOR SYSTEM NAME LongName;
But what about changing record format names?
Thanks
--
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
http://amzn.to/2dEadiD
--
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.