Problem in Sourcing dsenv

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Problem in Sourcing dsenv

Post 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
#
------------------------------------------------------------------------------------
Vinay
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

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

"You can never have too many knives" -- Logan Nine Fingers
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post 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,
Vinay
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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`"
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post 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.
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post 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
Vinay
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post 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.
vintipa
Participant
Posts: 136
Joined: Wed May 07, 2008 11:26 am
Location: Sydney, Australia
Contact:

Post 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,
Vinay
Post Reply