I think you meant to leave a space between the file name and file identifier?
from erplxf rco, erplxf rcm)
That said, if you wanted every column from erplxf, you could use:
select rco.*, rcm.ccust, rcm.cnme
- Dan Bale
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Rob Berendt
Sent: Tuesday, September 23, 2025 12:05 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: DDL question
This works
create table rob.m0923 as (
select rco.cmpny, rco.cmpnam,
rcm.ccust, rcm.cnme
from erplxf.rco, erplxf.rcm)
definition only
including column defaults
;
*** CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ***
As an Amazon Associate we earn from qualifying purchases.