I don't get any error, below is the output I get when I print the variable which was supposed to store the sql output.
So, the sql is not processing at all.(this is the issue)
sqlplus -s id971934/colecsp\@ECSP <<END
set heading off
set echo off
set feedback off
set pagesize 0
select date_time_out,order_id,error_message,customer_id from ECS_SCHEMA.cob_mcom_log where error_code<>0;
END