0403-057 error `<' is not matched.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting 0403-057 error `<' is not matched.
# 1  
Old 05-07-2007
Question 0403-057 error `<' is not matched.

Hi Everybody,

I am new to this group and also to the Unix shell scripting.
I need some one to throw some light on this issue. I am not sure whats wrong in this script.When I execute this korn shell script it gives me an error
0403-057 Syntax error at line 28 : `<' is not matched.
Code:
##############################Raj############################################
#             Script to run the EDI_INBOUND PROGRAM                         #
#             Reads the files that are in van_in folder                     #
#             Dated : 05/02/2007                                            #
#############################################################################
#set -x
. $HOME/.profile
#############################################################################
CONTROLDIR=/u01/Raj
LOGDATE=`date +"%m%d%Y%H%M"`
LOGFILE=$CONTROLDIR/edi_$LOGDATE.log
INBOUND_DIR=/Raj/test/inbox
OUTBOUND_DIR=/Raj/test/inbox/archive
DBCONN=xxxx/xxxx@oracle
#############################################################################
cd $CONTROLDIR
#. ../env.init
cat /dev/null > $LOGFILE
cd $INBOUND_DIR
echo "=======================================================================" >>$LOGFILE
echo "        EDI Process Log File                  Dated:`date +"%d/%h/%Y"` " >>$LOGFILE
echo "=======================================================================" >>$LOGFILE
for filename in $(echo * 2>/dev/null)
do
  if (($(head -1 $filename | grep -e "006929681900" | wc -l) == 1));
  then
    1>>$LOGFILE 2>>$LOGFILE sqlplus -s $DBCONN <<EOF
    whenever sqlerror exit 99
    set serveroutput on
    set feedback off
    execute edi.process_edi('$filename');
    exit
    EOF
  fi
done

I appreciate if I can get some real quick help on this bcoz i need to put this in production asap.

Thanks,
Raj.

Last edited by reborg; 05-07-2007 at 09:19 AM..
# 2  
Old 05-07-2007
Verify that there is no space before before the here-document word 'EOF' on line 33 (the word 'EOF' must start at column 1).


Jean-Pierre.
# 3  
Old 05-07-2007
MySQL

Thanks Jean. Smilie
That worked liked a miracle.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

0403-057 Syntax error at line 399 : `"' is not matched

Hi Everyone, I am getting strange behavior, same script runs fine without any error in one AIX machine, whereas on another it is throwing this error "0403-057 Syntax error at line 399 : `"' is not matched", I also ran the script in debug mode. This is the output, still doesn't say anything.... (2 Replies)
Discussion started by: sid1987
2 Replies

2. Shell Programming and Scripting

0403-057 Syntax error at line 17 : `(' is not expected.

Hi, While executing my code i am getting below Error: ./check_disk1: 0403-057 Syntax error at line 55 : `(' is not expected. My code is : #!/bin/ksh PROGNAME=`basename $0` STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 OS=$(uname) AWK="/usr/bin/awk"... (6 Replies)
Discussion started by: abodage
6 Replies

3. Shell Programming and Scripting

New AIX User- help with error 0403-057

I am completely new to UNIX and can not execute some very simple code. I am trying to execute a ksh command and recieve an error : "0403-057 Syntax error at line 82 : `if' is not matched." where line 82 is: ". /home/C_files/_bash.cfg" I did not know that calling a config file... (5 Replies)
Discussion started by: newAIXuser
5 Replies

4. Shell Programming and Scripting

[Solved] 0403-057 Syntax error for if statement

I am getting the following error when I am running a script in ksh when trying to execute an if statement comparing two numerical values tstmb.sh: 1.5321e+08: 0403-057 Syntax error Below is my code snippet. #!/bin/ksh set -x TODAY=$(date +%y%m%d) for file in $(ls -rt *.log | tail... (11 Replies)
Discussion started by: kiran1112
11 Replies

5. Shell Programming and Scripting

0403-057 Syntax error at line : `}' is not expected.

i dont know where m i mistaking.. please help me out with this issue :( thanks in advance:rolleyes: one_main() { a=100 while ; do clear echo "##############################################" echo ":: CURRENTLY YOU ARE IN RC AND OC MARKING ::" echo... (1 Reply)
Discussion started by: Puneet sinha
1 Replies

6. Shell Programming and Scripting

0403-057 Syntax error at line 169 : `"' is not matched.

Hi, I am getting this error in my attached shell script, kindly help as soon as possible: Thanks, Andre (2 Replies)
Discussion started by: damoon
2 Replies

7. Shell Programming and Scripting

0403-057 Syntax error

I am getting the error : rocfm/wls_subload/in/processed_files/tel_input_additional_checked_all_mandatory.txt: 0403-057 Syntax error at line 1 : `|' is not expected. >>>>ALL MANDATORY FIELDS CHECKING IS SUCCESSFUL count is 0 ... (3 Replies)
Discussion started by: princetd001
3 Replies

8. Shell Programming and Scripting

[Solved] 0403-057 Syntax error `<' is not matched

curr_time=`date +%Y%m%d%H%M` curr_date=`date +%Y%m%d` zero=0 script_path="/home/wccuser1/wcc/Scripts/bulk_file_ftp" file_dir="/home/wccuser1/wcc/Bulk_Files" todays_file_count=`ls -ltr | grep $curr_date | awk '{print $9}' | wc -l` todays_file=`ls -ltr | grep $curr_date | awk '{print $9}'` if... (5 Replies)
Discussion started by: gagandeep
5 Replies

9. Shell Programming and Scripting

Problem with shell script - Error: 0403-057

Hi, I am new to shell scripts may be the error is very very small and i am unable to catch hold of it, any suggestion would be appreciated....error is at the bottom: +210 # get file type +211 filetype=`tail -1 "$inputdir"/"$i"|cut -d"|" -f2` +212 # +213 # get the record count as specified... (4 Replies)
Discussion started by: ravi0435
4 Replies

10. Shell Programming and Scripting

get_source[34]: 0403-057 Syntax error at line 66 : `"' is not matched.

Hi, I am getting this error in my shell script, kindly help as soon as possible: ################################################################### # Main body of program ################################################################### . /saptech/scripts/common/declare # Defines... (1 Reply)
Discussion started by: vishal_ranjan
1 Replies
Login or Register to Ask a Question