Hello,
I want to move data from dataset to a sequential file using a command. I tired the following command i got an error.
orchadmin dump updateims21.ds update.txt
-ksh: orchadmin: not found [No such file or directory]
Thanks
dumping dataset to a file
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 236
- Joined: Sun Apr 01, 2007 7:41 am
- Location: Michigan
Re: dumping dataset to a file
Path may not be set properly might be the reason. Go to pxengine/bin and from there execute the same. It will work.
DS User
DS User
Re: dumping dataset to a file
It will work that way only if the current directory "." is included in PATH.SURA wrote:It will work.
It was mentioned here recently that dumping datasets via command line may not give the results you expect due to special/nonprintable characters, etc., so be careful in testing the results.
Choose a job you love, and you will never have to work a day in your life. - Confucius
-
- Premium Member
- Posts: 296
- Joined: Sun Nov 16, 2008 7:41 pm
Re: dumping dataset to a file
I did try following commandSURA wrote:Path may not be set properly might be the reason. Go to pxengine/bin and from there execute the same. It will work.
DS User
/opt/IBM/Engine/InformationServer/Server/PXEngine/bin>orchadmin dump /di/data/proj/inbound/updateims21.ds /di/data/proj/inbound/1.txt
It did not return any error but i did not get any output into the file.
-
- Premium Member
- Posts: 296
- Joined: Sun Nov 16, 2008 7:41 pm
I used > in the command still no data was dumped in to output fileqt_ky wrote:Did it dump the data set to your screen? If you want to redirect output from a command into a file, you have to put > in front of the file: echo ABC >file.txt
/opt/IBM/Engine/InformationServer/Server/PXEngine/bin>orchadmin dump /di/data/proj/inbound/updateims21.ds > /di/data/proj/inbound/update.txt
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore