If my 1) Lib IS A FIELD NAME AND THAT FIELD CONTAIN LIBRARY LIST
2) Fil IS A FIELD NAME AND THAT FIELD CONTAIN FILE NAME LIST
Then hOw can I use this in SQLRPGLE code
CNT = VARIABLE
ORD IS FIELD NAME IN PHYSICAL FILE
ORDERNO IS NAME OF INPUT FIELD ON DISPLAY FILE
C/EXEC SQL
C+ SELECT COUNT(*) INTO :CNT FROM LIB/FIL
C+ WHERE ORD= :ORDERNO
C/END-EXEC
PROBLEM= I WANT THE VARIABLE INSIDE OF LIB AND FIL TO SELECT BUT IT IS SELECTING LIB AND FIL
PLEASE HEPL ME TO SOLVE THIS PROBLEM
2) Fil IS A FIELD NAME AND THAT FIELD CONTAIN FILE NAME LIST
Then hOw can I use this in SQLRPGLE code
CNT = VARIABLE
ORD IS FIELD NAME IN PHYSICAL FILE
ORDERNO IS NAME OF INPUT FIELD ON DISPLAY FILE
C/EXEC SQL
C+ SELECT COUNT(*) INTO :CNT FROM LIB/FIL
C+ WHERE ORD= :ORDERNO
C/END-EXEC
PROBLEM= I WANT THE VARIABLE INSIDE OF LIB AND FIL TO SELECT BUT IT IS SELECTING LIB AND FIL
PLEASE HEPL ME TO SOLVE THIS PROBLEM