If this is a flat file with just one field, I beleive you need to do a new CRTPF with the new RCDLEN
If it has multiple fields, you need to change the DDS or SQL and create a new file.
Either way you will need to fo a CPYF to get the data to the new file.
If there are LFs, they will also need to be recreated.
All programs referencing this file will need to be recompiled.
Last Wiki Answer Submitted: September 13, 2011 3:26 pm by CharlieBrowne32,785 pts.
All Answer Wiki Contributors: CharlieBrowne32,785 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Usually, you don’t increase the length of a “record”. You increase the length of a field in the record, and the record length automatically gets adjusted.
As CharlieBrowne says, if this is a program-described file, you should simply recreate the file with a new record length.
But if it’s an externally-described file created with DDS, you might choose to change the DDS to update field lengths and then run CHGPF to get the file changed.
Or you might use the ALTER TABLE SQL statement to get similar results for a SQL table.
The exact procedure can be different depending on what change needs to be made. Tell us the details about the file for more information.
Usually, you don’t increase the length of a “record”. You increase the length of a field in the record, and the record length automatically gets adjusted.
As CharlieBrowne says, if this is a program-described file, you should simply recreate the file with a new record length.
But if it’s an externally-described file created with DDS, you might choose to change the DDS to update field lengths and then run CHGPF to get the file changed.
Or you might use the ALTER TABLE SQL statement to get similar results for a SQL table.
The exact procedure can be different depending on what change needs to be made. Tell us the details about the file for more information.
Tom