1 Reply Latest reply: Feb 2, 2012 4:45 AM by Hussein Sawwan-Oracle RSS

    Syntax error at line 32 : `if' is not matched

    907144
      Hi,

      Submitting concurrent program with host (.prog file)executable to send an email with concurrent program out file for support.

      given full execution permissions and created soft link.

      code in .prog file:

      LOGIN=$1
      REQUEST_ID=$4
      PREQUEST_ID=$5
      SUBJECT=$6
      BODY=$7
      MAIL_ID=$8
      OUT_FILE=$APPLCSF/$APPLOUT/o$4.out
      echo $OUT_FILE
      DATE=`date`
      echo $DATE
      CONC_OUT_FILE=$APPLCSF/$APPLOUT/o$5.out
      echo $CONC_OUT_FILE
      test -f CONC_OUT_FILE

      if [ $? -ne 0 ]
      then
      echo "Error Unable to find the output file........"
      exit 2
      else
      mailx -s "$SUBJECT" $MAIL_ID<$CONC_OUT_FILE
      echo "Succesfully E Mailed Output file to finance IT support team........"
      exit 0
      fi


      Getting concurrent program output (error):

      /app/r11i_off/comn/admin/out/R11i_OFF_finoffdb/o6936738.out

      Thu Feb 2 02:44:14 EST 2012

      /app/r11i_off/comn/admin/out/R11i_OFF_finoffdb/o6935861.out

      /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[29]: ^M: Execute permission denied.
      /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[31]: ^M: Execute permission denied.
      /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[32]: Syntax error at line 32 : `if' is not matched.
      /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT
      Program exited with status 126

      Please give me suggestion to resolve this issue.

      Regards,
      Neeraja.
        • 1. Re: Syntax error at line 32 : `if' is not matched
          Hussein Sawwan-Oracle
          Please post the details of the application release, database version and OS.
          /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[29]: ^M: Execute permission denied.
          /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[31]: ^M: Execute permission denied.
          Please make sure you have permission set correctly.
          /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[32]: Syntax error at line 32 : `if' is not matched.
          /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT
          Program exited with status 126
          Change "if [ $? -ne 0 ]" to "if [ $? -ne 0 ];" and see if this helps.

          Thanks,
          Hussein