Sponsored Content
Top Forums Shell Programming and Scripting 0403-057 error `<' is not matched. Post 302116595 by ntekupal on Monday 7th of May 2007 02:30:35 AM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
mlib_ImageColorRGB2YCC_Fp(3MLIB)			    mediaLib Library Functions				  mlib_ImageColorRGB2YCC_Fp(3MLIB)

NAME
mlib_ImageColorRGB2YCC_Fp - RGB to YCC color conversion SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_ImageColorRGB2YCC_Fp(mlib_image *dst, const mlib_image *src); DESCRIPTION
The mlib_ImageColorRGB2YCC_Fp() function performs a color space conversion from computer R'G'B' to ITU-R Rec.601 Y'CbCr. The source and destination images must be three-channel images. It uses the following equation: |Y'| |cmat[0] cmat[1] cmat[2]| |R'| |offset[0]| |Cb| = |cmat[3] cmat[4] cmat[5]| * |G'| + |offset[1]| |Cr| |cmat[6] cmat[7] cmat[8]| |B'| |offset[2]| where cmat[] = { 65.738/256, 129.057/256, 25.064/256, -37.945/256, -74.494/256, 112.439/256, 112.439/256, -94.154/256, -18.285/256 }; offset[] = { 16, 128, 128 }; src[x][y] = { R', G', B' }; dst[x][y] = { Y', Cb, Cr }; PARAMETERS
The function takes the following arguments: dst Pointer to destination image. src Pointer to source image. RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_ImageColorConvert2(3MLIB), mlib_ImageColorConvert2_Fp(3MLIB), mlib_ImageColorRGB2YCC(3MLIB), mlib_ImageColorXYZ2RGB(3MLIB), mlib_ImageColorXYZ2RGB_Fp(3MLIB), mlib_ImageColorYCC2RGB(3MLIB), mlib_ImageColorYCC2RGB_Fp(3MLIB), attributes(5) SunOS 5.11 2 Mar 2007 mlib_ImageColorRGB2YCC_Fp(3MLIB)
All times are GMT -4. The time now is 04:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy