I am trying to do the following. I am trying to identify all the locations assigned to a USER in an ORACLE table. But how do I populate all the returned values into a drop down box? The following code, only obtains the first value.
SQL ORA
select locations AS LOC
FROM user t
WHERE Upper(t.userid) = Upper('&MRUSER')
;
TABLE FILE SQLOUT
PRINT
LOC AS 'LOC'
ON TABLE HOLD AS LOCHLD1
END
-RUN
DEFINE FILE LOCHLD1
RLOC1/A55 = '<option value="'|| LOC ||'">' || LOC ;
END
Thanks in advance
SQL ORA
select locations AS LOC
FROM user t
WHERE Upper(t.userid) = Upper('&MRUSER')
;
TABLE FILE SQLOUT
LOC AS 'LOC'
ON TABLE HOLD AS LOCHLD1
END
-RUN
DEFINE FILE LOCHLD1
RLOC1/A55 = '<option value="'|| LOC ||'">' || LOC ;
END
Thanks in advance