|
Thanks Edmund, I'll give that a shot. Greg >-----Original Message----- >From: code400-l-bounces@xxxxxxxxxxxx [mailto:code400-l- >bounces@xxxxxxxxxxxx] On Behalf Of Edmund Reinhardt >Sent: Friday, September 30, 2005 4:05 PM >To: CODE/400 Discussion & Support >Cc: code400-l-bounces@xxxxxxxxxxxx; code400-L@xxxxxxxxxxxx >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, reinhard@xxxxxxxxxx >Dept 607, IBM Canada Lab TL 969-4392 Phone 905-413-4392 > > > > > "Fleming, Greg > \(ED\)" > <GFLEMING@evergla To > desdirect.com> <code400-L@xxxxxxxxxxxx> > 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 & > 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 & Support (CODE400-L) mailing list >To post a message email: CODE400-L@xxxxxxxxxxxx >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/code400-l >or email: CODE400-L-request@xxxxxxxxxxxx >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
As an Amazon Associate we earn from qualifying purchases.
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.