|
Tim Truax wrote: > > Hello All, > Why isn't there a keyword on the CRTPF CL command that will give you an > option to reserve the files existing data and then *ADD the data back > using the FMTOPT(*NOCHK) for you? Is this a stupid question? But the > OS400 developers seemed to have thought of everything so I am suprised > that you have to go thru several steps when changing a physical file > (Change the DDS, CRTDUPOBJ the current file, then CRTPF the new blank > file, then CPYF the old data into it) Is there a good reason for these > methodical steps? > -- > žžžžžžžžžžžžž > ž-Tim Truax-ž > žžžžžžžžžžžžž I've got the next best thing. CHGPF. The SRCFILE parameter allows you to specify the DDS source file for the new file description. Data in the existing file is placed in the new file using logic like CPYF's FMTOPT(*MAP *DROP) function. Data is converted to the new file using field names. THere appears to be no way to do a FMTOPT(*NOCHK) type operation. (Not to be flippant, but what reason would you have to change field names, or require overlaying fields?). For more information, try the link to IBM's OnLine CD ROMs http://AS400BKS.rochester.ibm.com:80/cgi-bin/bookmgr/bookmgr.cmd/BOOKS/QBJAU200/3.1.233 -- Bob Larkin Larkin Computer Consulting blarkin@wt.net * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.