× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Yes you can add a label associated with a CHGPF command to the Program
Generator and associate it with the member you are editing.

Steps:
1) Edit the PF member
2) Actions->Compile->Prompt ...
[Note that the PF member is assocaited with CRTPF label by default.  And
that the CRTPF label is associated with the CRTPF command.]
3) Change the label to CHGPF
4) Change the command to CHGPF
5) Change the user profile to 'User defined'
6) Hit the Options button and make sure that the value is:
&C FILE(&L/&M) SRCFILE(&L/&F) SRCMBR(&M)
You can add whatever addional parameters you wish
Of course this assumes that the PF you want to change resides in the same
library as the SRC-PF
7) Hit Ok button
8) Hit Add
9) Hit Submit to actually execute the command

>From now on the CHGPF label will be used with this member
If you want the CHGPF label to be used with a different member.  Load the
member.  Prompt a compile and select the CHGPF label before doing a
submit.

Hope this helps,

---------------------------------------------------------------------------------------------

Edmund Reinhardt,  AS/400 AD Tools,   reinhard@ca.ibm.com
Dept 607,   IBM Canada Lab  TL 969-4392  Phone 905-413-4392

Please respond to code400-l@midrange.com
Sent by:        code400-l-admin@midrange.com
To:        <code400-l@midrange.com>
cc:
Subject:        Adding command to CODE Program Generator (was RE: replacing a 
PF)


Thanks, Reeve.  I didn't think about CHGPF.

I added the action to CPO under as/400 members (was only under as/400
objects.)  This is not bad.

But I'd really like to add CHGPF to the CODE Program Generator.  I'm
having
trouble doing this.
I've look in the documentation included with WDTS and have tried to add
one
a couple ways but with no luck.  Is it possible to do this?

Thanks,

Phil

> -----Original Message-----
> From: code400-l-admin@midrange.com
> [mailto:code400-l-admin@midrange.com]On Behalf Of Reeve Fritchman
> Sent: Sunday, January 13, 2002 10:28 AM
> To: code400-l@midrange.com
> Subject: RE: replacing a PF
>
>
> Is there a reason not to use CHGPF SRCFILE{}, or is this a
> generic question
> about the way PDM works?  For CHGPF (ALTER TABLE), the creation
> date doesn't
> change but everything else does (assuming old and new column
> attributes are
> mapable).  IMV, there is some wisdom in not allowing a casual
> (in-line/automatic) deletion of a PF.
>
> Regards,
> Reeve



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/code400-l
or email: CODE400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.