That would be a mess - but using CHGPF does that for you (map fields).
We find we have eliminated many mistakes by using CHGPF.
----- Original Message ----- 
From: <GKern@xxxxxxxxxxxxxxxx>
To: <midrange-l@xxxxxxxxxxxx>
Sent: Tuesday, December 07, 2004 4:48 PM
Subject: Re: ALTER TABLE over multiple members

> > What problems? - I often add new fields within the layout, or expand
> > existing fields, both single & multimember. Even drop fields.
> > The only limit i have had so far was changing alpha to num or reverse.
> > btw- the chgpf command is internally doing a copy. You will get halts
> > if decimal data errors, and a warning if dropping a field or shortening
> > a field (warning about potential lost data).
> He didn't use *MAPFLD during a cpyf. He'll never do that again <G>.
> Regards, Jerry
> Gerald Kern
> IBM Certified AS/400 RPG IV Developer & RPG IV Programmer
> MIS Project Leader, Lotus Notes/Domino Administrator
> The Toledo Clinic, Inc.
> 4235 Secor Road
> Toledo, OH 43623-4299
> Phone 419-479-5535
> gkern@xxxxxxxxxxxxxxxx
> *****
> This email message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply email and destroy all copies of the original message.


> --
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page