I have been asked to modify a rather old RPG II program. I am going to convert it to and SQLRPGLE program. It reads a file as input primary and then uses IF statements the records it wants based on a date field. I am going to replace the logic with a SQL cursor and then fetch it into a external data structure using the the IP primary file name in the EXTNAME parameter of the DS definition. The field names of the IP primary file are used throughout the program and I don't want to have to replace the current field usage with qualified field names as there are just too many. Is there a way to copy the fields from the qualified data structure to another one one that is unqualified so I don't have to move each field individually'
Hope this makes sense.
Hope this makes sense.
Comment