The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
get_source[34]: 0403-057 Syntax error at line 66 : `"' is not matched. vishal_ranjan Shell Programming and Scripting 1 05-15-2008 07:48 AM
0403-027 The parameter list is too long. romiljain UNIX for Dummies Questions & Answers 5 02-21-2008 08:52 PM
Script Error: 13192.sumr: 0403-016 Cannot find or open the file. jgruenwald Shell Programming and Scripting 0 01-21-2008 12:08 PM
0403-057 Syntax error at line 70. pls help OMONI UNIX for Dummies Questions & Answers 2 07-20-2005 05:37 AM
getting error 0403-016 Cannot find or open the file while reading a long line karthee Shell Programming and Scripting 2 06-05-2005 01:00 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-07-2007
ntekupal ntekupal is offline
Registered User
  
 

Join Date: May 2007
Location: Dallas, TX
Posts: 13
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 (permalink)  
Old 05-07-2007
aigles's Avatar
aigles aigles is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,433
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 (permalink)  
Old 05-07-2007
ntekupal ntekupal is offline
Registered User
  
 

Join Date: May 2007
Location: Dallas, TX
Posts: 13
Thumbs up

Thanks Jean.
That worked liked a miracle.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0