Hi there,
I wonder if there is a way to refer a DataBase Field Dynamically. I know i can achieve this in SQLRPGLE.
Let me explain in detail.
I have this field FLD001 of Length 10, Alphanumeric Type and I have this file that is declared in F-Spec. FLD001 stores the field name of field present in file that i declared in F-Spec. Is there any way I can get the value of Field present in FLD001.
Example:
EMP File got EMPID and EMPNAME Fields.
FLD001 = 'EMPID';
Is there any way i can get the value of EMPID(FLD001 has EMPID) without using SQLRPGLE. I was thinking to use Pointers but no results. So i need help.
I wonder if there is a way to refer a DataBase Field Dynamically. I know i can achieve this in SQLRPGLE.
Let me explain in detail.
I have this field FLD001 of Length 10, Alphanumeric Type and I have this file that is declared in F-Spec. FLD001 stores the field name of field present in file that i declared in F-Spec. Is there any way I can get the value of Field present in FLD001.
Example:
EMP File got EMPID and EMPNAME Fields.
FLD001 = 'EMPID';
Is there any way i can get the value of EMPID(FLD001 has EMPID) without using SQLRPGLE. I was thinking to use Pointers but no results. So i need help.
Comment