Problem with ORCHADMIN
Moderators: chulett, rschirm, roy
Problem with ORCHADMIN
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
Any inputs?
Thanks
Could you output the result of "env | grep ORCH"?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Drop the "$" sign from the echo command.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
ROFL - how right you are, Craig - I was thinking of him assigning the value, not displaying. That's what I get for working 13 days solid
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
I was wondering. That's what you get for being a triskaidekaworkaholic.
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.
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
"You can never have too many knives" -- Logan Nine Fingers
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.
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.
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?
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.
What happens if you fully path your command?
Code: Select all
$ORCHHOME\bin\orchadmin rm testfile.ds
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
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
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