We have an application in which we need to expand the size of several fields within the record, ie the Amount field need to be larger.
In the past I would create DDS for the new expanded file, create the file, then write an RPG or Cobol program to copy the data from the old file to the new expanded file.
I was looking to see if the CPYTOIMPF/CPYFRMIMPF would accomplish the same task without having to write a program to move each file. The number of fields would be the same and in the same order within the record.
I'm not sure if I could use this command to copy directly from the old file to the new file, or if I would need to copy it out to a Stream delimited file, then copy it back into the new file structure.
May 7, 2009 2:10 AM
May 7, 2009 1:02 PM