RE: Compiling PF won't work if file exists

"Fleming, Greg \(ED\)" <GFLEMING-4htpennSlkHKHvMhFAWwk1aTQe2KTcn/@public.gmane.org> Wed, 5 Oct 2005 11:15:21 -0400
Newsgroups gmane.comp.systems.as400.code
Message-ID <[email protected]>
Thanks Edmund,

I'll give that a shot.

Greg

>-----Original Message-----
>From: code400-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected] [mailto:code400-l-
>bounces-Zwy7GipZuJhWk0Htik3J/[email protected]] On Behalf Of Edmund Reinhardt
>Sent: Friday, September 30, 2005 4:05 PM
>To: CODE/400 Discussion &amp; Support
>Cc: code400-l-bounces-Zwy7GipZuJhWk0Htik3J/[email protected]; code400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
>Subject: Re: Compiling PF won't work if file exists
>
>Hi Greg,
>
>The CRTPF command doesn't have a REPLACE option because this is a
database
>and you don't want to blow away your data.
>But the good news is that there is a CHGPF command which does exactly
what
>you want.
>
>To use this command you will have to take the following steps.
>
>>From CODE Designer go to the Tools=>Complile=>Prompt...
>This will bring up the CODE Program Generator
>
>Type in the label "CHGPF" and the command "CHGPF" and change the
Associated
>profile to "User defined"
>
>(Embedded image moved to file: pic20675.jpg)
>
>Hit the Add button to add this new user-defined command to the list.
>Hit the Options button and change the PGM keyword to FILE
>(Embedded image moved to file: pic02480.jpg)
>Otherwise you will get
>CHGPF PGM(REINHARD/TESTPF) SRCFILE(REINHARD/QDDSSRC) SRCMBR(TESTPF)
>CPD0043 Keyword PGM not valid for this command.
>CPF0001 Error found on CHGPF command.
>
>Hit submit and the DDS will be compiled and will update your DB.
>>From now on simply hitting the Compile toolbar button or Ctrl-Shift-C
will
>invoke CHGPF for this member.
>
>When you want to do this for a different member, simply prompt the
compile
>and select the CHGPF label from the list in Program Generator and hit
>Submit and it will be remembered for that member as well.
>-----------------------------------------------------------------------
----
>------------------
>
>Edmund Reinhardt,  AS/400 AD Tools,   [email protected]
>Dept 607,   IBM Canada Lab  TL 969-4392  Phone 905-413-4392
>
>
>
>
>             "Fleming, Greg
>             \(ED\)"
>             <GFLEMING@evergla
To
>             desdirect.com>            <code400-L-Zwy7GipZuJhWk0Htik3J/[email protected]>
>             Sent by:
cc
>             code400-l-bounces
>             @midrange.com
Subject
>                                       Compiling PF won't work if file
>                                       exists
>             30/09/2005 08:54
>             AM
>
>
>             Please respond to
>                 "CODE/400
>             Discussion &amp;
>                 Support"
>
>
>
>
>
>
>I can't figure out how to get Code Designer to compile a physical file
>if it already exists.
>
>
>
>If I delete the file first, it will compile just fine, but if I compile
>again, it fails because the file exists.
>
>I don't seem to have this problem with display files.
>
>
>
>Is there a setting I've missed ?  I couldn't find any relevant options
>on the compile parameters.
>
>
>
>Greg Fleming
>
>Programmer/Analyst
>
>Everglades Direct, Inc.
>
>
>
>_______________________________________________
>This is the CODE/400 Discussion &amp; Support (CODE400-L) mailing list
>To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/mailman/listinfo/code400-l
>or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/code400-l.
>
>NOTE: WDSc for iSeries discussion has it's own mailing list.
>Information can be found at
>http://lists.midrange.com/cgi-bin/listinfo/wdsci-l


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

NOTE: WDSc for iSeries discussion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsci-l