Problem with ORCHADMIN

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

shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Problem with ORCHADMIN

Post by shiva459 »

I am trying to delete datasets using ORCHADMIN utility but running into issues. When I give orchadmin rm file.ds from $APT_ORCHHOME/bin, I get a message saying 'The environment variable APT_ORCHHOME cannot be empty'. Thie path is set in ENV variable for APT_ORCHHOME. Also, APT_CONFIG_FILE value is also set. Additionally I have set the PATH variable value to $APT_ORCHHOME/bin. But still I get the same mesage.

Any inputs?

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Could you output the result of "env | grep ORCH"?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The error message suggest that for the executing user APT_ORCHHOME is empty. As Arnd suggests, include an echo command in the script to verify whether or not this diagnosis is correct.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

Ray and ArndW

I tried echo $APT_ORCHHOME and I do not get anything. I did ENV and see bunvh of variables but do not see APT_ORCHHOME. However the value is set when I check from ADMIN tool in ENV variables.

Thanks
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

Infact when I say echo $APT_ORCHHOME, I get a blank line as response.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Drop the "$" sign from the echo command.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

did tou source the dsenv file before giving orchadmin command
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

Below is the output from echo command
echo APT_ORCHHOME
APT_ORCHHOME
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Of course. :wink:

Dropping the dollar sign makes no sense (sorry Arnd) as that just echos back the string as typed. Some flavors of UNIX echo back an empty line when a value is not set, others specifically tell you it isn't set.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

ROFL - how right you are, Craig :oops: - I was thinking of him assigning the value, not displaying. That's what I get for working 13 days solid :(
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I was wondering. That's what you get for being a triskaidekaworkaholic. :wink:

You definitely don't want to use the $ when assigning the value.

It is not set in the current environment. So, one would need (as noted earlier) to 'source' their dsenv file first, if that is where those are set. If they are defined only in the Administrator, then they will be set when a job runs and accessible from the job's run-time environment, not all the time.
-craig

"You can never have too many knives" -- Logan Nine Fingers
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

I tried this :

APT_ORCHHOME="D:\IBM\InformationServer\Server\PXEngine"
export APT_ORCHHOME

Now
echo $APT_ORCHHOME
D:\IBM\InformationServer\Server\PXEngine

cd bin
pwd
D:\IBM\InformationServer\Server\PXEngine\bin

orchadmin rm testfile.ds
orchadmin: not found

Not sure if there is any setting that needs to be changed.
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

I'm not able to find dsenv file on my machine. Is something new in version 8?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, that's only applicable for a UNIX server, didn't realize you were running Windows. Ignore that bit of advice in your case.

What happens if you fully path your command?

Code: Select all

$ORCHHOME\bin\orchadmin rm testfile.ds
Have you checked in your bin directory to confirm that command is (or isn't) actually there? Any chance it is "orchadmin.exe" on a Windows box? I neither know nor can check, hence the questions.
-craig

"You can never have too many knives" -- Logan Nine Fingers
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

Craig,

Yes, it is orchadmin.exe in windows.

$ cd D:\IBM\InformationServer\Server\PXEngine\bin
$orchadmin.exe rm testfile.ds
orchadmin.exe : not found


If I try the same thing from windows prompt
D:\IBM\InformationServer\Server\PXEngine\bin>orchadmin.exe rm testfile.ds
The environment variable APT_ORCHHOME cannot be empty
Post Reply