Are you trying to see if the ctl file is in the DB?
Sounds like Oracle, in which case, iirc the SQL is (similar to this)
select 1
from configuration_master
where source_file_name = 'US_MFg_Units_On_Hand_Actual.ctl';
If you get NULL, the rec is not there.
In Linux you can check the disk:
Code:
var=`ls US_MFg_Units_On_Hand_Actual.ctl 2>/dev/null|wc -l`
if [[ $var -eq 0 ]]
then
echo "$file exists"
else
echo "Nope"
fi