The attached snippet is from a BASH script where I use Oracle SQL*Plus Ver. 11.2 to extract the last 6 hours of values for the KEYs listed. The variable $DATA_VALUES_CURRMM is the database table for the current month that I pass to sqlplus. What I would like to do is put the KEYs in a .csv file and pass the file to sqlplus using a BASH script. The sqlplus portion of the script is attached. The Experts helped me with this script before. Any other suggestions would be appreciated.