Hi,
can anyone please help me on this.
I dont understand as to why am getting this error..
Please, please help on this!
fortesting purpose I have commented certain lines..
"Pre_s2a_leadtime.sh" 55 lines, 1233 characters
#!/bin/csh
# Check if program is already running and echo a time stamp for the log file
#log_start_chk $0 $$
#if ( $status == 0 ) then
#exit
#endif
#source run_env
set L2S_RUN_LOG_FILE="Pre_s2a_leadtime.log"
echo -n "$0 started" >> ${L2S_RUN_LOG_FILE}
date '+%m%d%y %H:%M:%S' >> ${L2S_RUN_LOG_FILE}
#setenv DB_NAME viewer/viewer@ltstprod
FLAG=`sqlplus -silent viewer/viewer@ltstprod << SQLEND >> ${L2S_RUN_LOG_FILE}
set pagesize 0 feedback off verify off heading off echo off
select UNCONSTRAINED_PIECE_PART from ICMPINPUTCONTROL;
exit;
SQLEND`
if [ $FLAG ='Y']
then
sqlplus viewer/viewer@ltstprod << sqlend >> ${L2S_RUN_LOG_FILE}
# Running the following queries before the actual L2S program
drop table cycle_time_bkp;
create table cycle_time_bkp as select * from cycle_time;
update cycle_time a set cycle_time_days = 0
where exists(select 1 from route b where a.id = b.id and a.route = b.route and b.flow_id = 7);
quit
"Pre_s2a_leadtime.sh" 55 lines, 1256 characters