Re: Compiling PF won't work if file exists
Edmund Reinhardt <[email protected]> Fri, 30 Sep 2005 16:05:29 -0400
| Newsgroups | gmane.comp.systems.as400.code |
|---|---|
| Message-ID | <OFF8C23CF2.141FE16E-ON8525708C.006D63F9-8525708C.006E5D1B@ca.ibm.com> |
--0__=0ABBFA1FDFFEE5698f9e8a93df938690918c0ABBFA1FDFFEE569 Content-type: text/plain; charset=US-ASCII 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 & 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-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 --0__=0ABBFA1FDFFEE5698f9e8a93df938690918c0ABBFA1FDFFEE569 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ This is the CODE/400 Discussion & 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 --0__=0ABBFA1FDFFEE5698f9e8a93df938690918c0ABBFA1FDFFEE569--