If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > source SYBASE.csh problem... syntax error: unexpected end of file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-12, 22:52
ghostshell ghostshell is offline
Registered User
 
Join Date: Feb 2012
Posts: 2
solved ~~ source SYBASE.csh problem... syntax error: unexpected end of file

**system : RHEL 6

when i try to source the SYBASE.csh, it give me such error
bash: setenv: command not found
bash: setenv: command not found
bash: setenv: command not found
bash: setenv: command not found
bash: SYBASE.csh: line 64: syntax error: unexpected end of file


/*** original file start **** /
Quote:
#
# Sybase Product Environment variables
#
setenv SYBASE_JRE6_32 /opt/sybase/shared/JRE-6_0_24_32BIT
setenv SYBASE_JRE6 /opt/sybase/shared/JRE-6_0_24_64BIT
setenv SYBASE_JRE6_64 /opt/sybase/shared/JRE-6_0_24_64BIT
setenv SYBASE_OCS OCS-15_0
if ( $?INCLUDE == "0" ) then
setenv INCLUDE ""
endif
setenv INCLUDE /opt/sybase/OCS-15_0/include:"$INCLUDE"
if ( $?LIB == "0" ) then
setenv LIB ""
endif
setenv LIB /opt/sybase/OCS-15_0/lib:"$LIB"
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/OCS-15_0/bin:"$PATH"
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/OCS-15_0/lib:/opt/sybase/OCS-15_0/lib3p64:/opt/sybase/OCS-15_0/lib3p:"$LD_LIBRARY_PATH"
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/UAF-2_5/bin:"$PATH"
setenv SYBASE_UA /opt/sybase/UAF-2_5
setenv SYBASE_PLATFORM linux
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/DataAccess/ODBC/lib:"$LD_LIBRARY_PATH"
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/DataAccess64/ODBC/lib:"$LD_LIBRARY_PATH"
setenv SCROOT /opt/sybase/shared/sybcentral600
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/DBISQL/bin:"$PATH"
setenv SYBROOT /opt/sybase
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/ASEP/bin:"$PATH"
setenv SYBASE /opt/sybase
setenv SYBASE_ASE ASE-15_0
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/ASE-15_0/bin:/opt/sybase/ASE-15_0/install:"$PATH"
setenv SYBASE_JRE_RTDS /opt/sybase/shared/JRE-6_0_24_64BIT
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/ASE-15_0/lib:"$LD_LIBRARY_PATH"
setenv SYBASE_WS WS-15_0
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/ASE-15_0/jobscheduler/bin:"$PATH"
/*** original file end **** /


to fix the error above...i edit few line...it still give this error when i try to source it again
bash: SYBASE.csh: line 64: syntax error: unexpected end of file

anyone can give me a direction for how to fix this?
thanks in advance

/*** file after edit start **** /
Quote:
#
# Sybase Product Environment variables
#
export SYBASE_JRE6_32="/opt/sybase/shared/JRE-6_0_24_32BIT"
export SYBASE_JRE6="/opt/sybase/shared/JRE-6_0_24_64BIT"
export SYBASE_JRE6_64="/opt/sybase/shared/JRE-6_0_24_64BIT"
export SYBASE_OCS="/opt/sybase/OCS-15_0"
if ( $?INCLUDE == "0" ) then
setenv INCLUDE ""
endif
setenv INCLUDE /opt/sybase/OCS-15_0/include:"$INCLUDE"
if ( $?LIB == "0" ) then
setenv LIB ""
endif
setenv LIB /opt/sybase/OCS-15_0/lib:"$LIB"
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/OCS-15_0/bin:"$PATH"
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/OCS-15_0/lib:/opt/sybase/OCS-15_0/lib3p64:/opt/sybase/OCS-15_0/lib3p:"$LD_LIBRARY_PATH"
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/UAF-2_5/bin:"$PATH"
setenv SYBASE_UA /opt/sybase/UAF-2_5
setenv SYBASE_PLATFORM linux
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/DataAccess/ODBC/lib:"$LD_LIBRARY_PATH"
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/DataAccess64/ODBC/lib:"$LD_LIBRARY_PATH"
setenv SCROOT /opt/sybase/shared/sybcentral600
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/DBISQL/bin:"$PATH"
setenv SYBROOT /opt/sybase
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/ASEP/bin:"$PATH"
setenv SYBASE /opt/sybase
setenv SYBASE_ASE ASE-15_0
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/ASE-15_0/bin:/opt/sybase/ASE-15_0/install:"$PATH"
setenv SYBASE_JRE_RTDS /opt/sybase/shared/JRE-6_0_24_64BIT
if ( $?LD_LIBRARY_PATH == "0" ) then
setenv LD_LIBRARY_PATH ""
endif
setenv LD_LIBRARY_PATH /opt/sybase/ASE-15_0/lib:"$LD_LIBRARY_PATH"
setenv SYBASE_WS WS-15_0
if ( $?PATH == "0" ) then
setenv PATH ""
endif
setenv PATH /opt/sybase/ASE-15_0/jobscheduler/bin:"$PATH"
/*** file after edit end **** /

Last edited by ghostshell; 02-11-12 at 11:21. Reason: resolve the problem
Reply With Quote
  #2 (permalink)  
Old 02-10-12, 09:52
Catarrunas Catarrunas is offline
Registered User
 
Join Date: Jan 2012
Posts: 27
Hi,

The SYBASE.sh ou .csh, doesn't need to be changed, normally.

So i would try to ask you how are you running the scritp?

Because the last times i've used rhel, with sybase. In order to set the environment variables, i had to run the script like so:

$root@.....> . SYBASE.sh

notice is "dot space script" ". SYBASE.sh"

Try it and check the environment variables: "env" comand.
Reply With Quote
  #3 (permalink)  
Old 02-11-12, 11:20
ghostshell ghostshell is offline
Registered User
 
Join Date: Feb 2012
Posts: 2
Quote:
Originally Posted by Catarrunas View Post
Hi,

The SYBASE.sh ou .csh, doesn't need to be changed, normally.

So i would try to ask you how are you running the scritp?

Because the last times i've used rhel, with sybase. In order to set the environment variables, i had to run the script like so:

$root@.....> . SYBASE.sh

notice is "dot space script" ". SYBASE.sh"

Try it and check the environment variables: "env" comand.
i just use >> source SYBASE.csh

after i comment out those if statement...it working fine
thanks for the reply anyway
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On