Page 1 of 1

Problem in Sourcing dsenv

Posted: Wed Jul 01, 2009 11:10 pm
by vintipa
Hi Experts,

I am facing problem in sourcing the dsenv file with following error.

-------------------------------------------------------------------------------------
# cd DSEngine
# . ./dsenv
ksh: t/datastage/Ascential/DataStage/DSEngine/bin:/dsetlsoft/datastage/Ascential/DataStage/PXEngine/bin:/oracle/app/product/10.1.0/bin: not found.
# pwd
/dsetlsoft/datastage/Ascential/DataStage/DSEngine
#
------------------------------------------------------------------------------------

Posted: Wed Jul 01, 2009 11:15 pm
by chulett
Looks like a line break problem, meaning something is two+ lines that should be one long one. Open it in vi, type ":set nu" (without the quotes) to turn on line numbers and check that.

Posted: Wed Jul 01, 2009 11:57 pm
by vintipa
Craig,

I am in doubt. what should i open in vi and do :set nu ?
and then wat should i check?

Sourcing of dsenv should be done in the path $DSHOME/DSEngine right?

regards,

Posted: Thu Jul 02, 2009 1:04 am
by ArndW
Yes "dsenv" file is in the $DSHOME directory, if that environment is not set, you can cd to it with "cd `cat /.dshome`"

Posted: Thu Jul 02, 2009 2:50 am
by Sainath.Srinivasan
Looking at the line raising error, it is your PATH setting that is causing the trouble.

Maybe sometime did not enable append mode and hence the 'o' in dsetlsoft resulted in newline. Just guess.

Posted: Thu Jul 02, 2009 2:51 am
by vintipa
hi,

i did the :set nu in the vi mode on the dsen file. then i found that one line that has a path is split in two lines. i have posted it below. plz let me know what changes to be mad if this is the issue which needs to be fixed.


+85 PATH=$PATH:/dsetlsoft/datastage/Ascential/DataStage/PXEngine.752.1/bin:/dsetlsof
+86 t/datastage/Ascential/DataStage/DSEngine/bin:$APT_ORCHHOME/bin:$ORACLE_HOME/bin;
+87

Posted: Thu Jul 02, 2009 3:03 am
by Sainath.Srinivasan
You need to 'join' lines 85 and 86 - thus the ending 'dsetlsof' in line 85 plus 't' in 86 becomes 'dsetlsoft'.

I hope you know the commands to do it.

Posted: Thu Jul 02, 2009 3:14 am
by vintipa
Thanks to all Experts,

The suggestins by you were very apt and useful.
the issue is resolved and i can now source the dsenv file successfully.

thanks again. :)

regards,