|
|
![]() |
|
|
|
|
||
|
Reader Feedback and Insights: Copying Records in RPG Hey, Ted: I'm writing about the August 23 Midrange Guru Tech Tips regarding moving records between files with different field names. One option that I didn't see, and the one I now prefer, with RPG IV is using the prefix keyword to rename the fields from one of the files. Here's an example: Fpaywork if e k disk Fpayhist o e disk prefix(pw : 2) C read paywork C dow not %eof(paywork) C write histrec C read paywork C enddo C eval *inlr = *on
-- Scott Good idea, Scott. A few other readers suggested the same thing. That technique will work in the example I gave because the trailing portions of the field names are the same in the two files. It would not work in cases where the trailing portions of names differed. -- Ted
|
Editors
Contact the Editors |
|
Last Updated: 9/06/02 Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved. |