I am trying to put the value of a field in a text string. Simple enough, but I want the field name to come from an array. I do not have the value of the field in the array, only the name.
I fill an array from reading the QDDSSRC into my RPG program. The array is called FieldNames: CustNo, Addr, City, State, Zip
I read the physical file and want to put the values for CustNo into a text string. When I run the program I don't know the name of the fields. They are in the array.
Does anybody have a clue? Is this even possible?
I fill an array from reading the QDDSSRC into my RPG program. The array is called FieldNames: CustNo, Addr, City, State, Zip
I read the physical file and want to put the values for CustNo into a text string. When I run the program I don't know the name of the fields. They are in the array.
Does anybody have a clue? Is this even possible?