|
The IBM command CHGPF (Change Physical File) will allow you to specify aDDS source member and will then "convert" the existing file (and all related logicals) to the new field lengths, including initializing new numeric fields to zero, and dropping fields (with a warning). You need an exclusive lock on the file to execute this. Also use CHGPF on the "work files" that may be built via CRTDUPOBJ (...never cpyf..)
or directly from the DDS source.The rpg will depend on how your code is defined. Internal I specs & O specs will take you a while, and beware of newly created records causing decimal data errors. Building work fields with hardcoded lengths in RPG are also a lot of work to find. There was more written about this around Y2K and some of that should be still online.
good luck jim----- Original Message ----- From: "Bob Cozzi" <cozzi@xxxxxxxxx>
To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx> Sent: Sunday, October 23, 2005 12:21 PM Subject: RE: Field expansion tool methodology
You could do it the way most people do... buy a tool from a vendor and spendtime converting the field instead of writing a tool that allows you to convert the field. -Bob Cozzi www.RPGxTools.com RPG xTools - Enjoy programming again. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of M.Kamaleshwar Sent: Saturday, October 22, 2005 5:31 AM To: rpg400-l@xxxxxxxxxxxx Subject: Field expansion tool methodology Hi, I need to write a tool program that would expand fields in files (database / display / printer) and also in COBOL/400 programs.Can anyone throw some light on how to go about it - suggest a methodology ?Are there any links or sites on this ? If any of you have any documents/notes/ white paper on this topic , please send it to me. Thanks in advance ! Kamlesh --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-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.