Page 1 of 1

Export of Datastage job from command prompt

Posted: Mon Oct 04, 2010 6:47 am
by Thripura
I have used dsexport command to export the job but i am facing the following issue.

-bash: dsexport: command not found

Command used:

DsExport /H=<hostname> /U=dsadm /P="<password> /JOB=j<jobname> <project> export_file.dsx

Connecting to DS from Citirx .Please let me know if there is any issue.

Posted: Mon Oct 04, 2010 6:51 am
by chulett
A pathing issue, it would seem. Either fully path the command, add its home directory to your $PATH or 'cd' there first and then "dot slash" it.

Posted: Mon Oct 04, 2010 8:00 am
by nitkuar
execute below command on UNIX box

Code: Select all

. /opt/ISSuite/Source/InformationServer/Server/DSEngine/dsenv;
Please change the dsenv path as per your folder structure.

After that you should be able to use dsexport command for unix session.

Posted: Mon Oct 04, 2010 9:21 am
by asorrell
nitkuar wrote:execute below command on UNIX box

Code: Select all

. /opt/ISSuite/Source/InformationServer/Server/DSEngine/dsenv;
Actually Nitkuar that isn't exactly correct. That path is O/S and machine dependent. To get the correct base path you should try:

Code: Select all

cat /.dshome
and then use that path to find dsenv.

Posted: Mon Oct 04, 2010 9:26 am
by kduke
Vesrion 8 needs a domain.

Posted: Mon Oct 04, 2010 9:56 am
by chulett
But first it needs to be found. :wink:

Posted: Mon Oct 04, 2010 10:35 am
by Thripura
I have 'cd' to the path where dsenv file is present.From there i have executed the command.

PATH=$PATH:/opt/InformationServer/Server/DSEngine/dsenv export PATH

After this is have executed the DSEXPORT command and faced the issue.

Dsexport command not found.

Please provide me the shell script details to take export of individual jobs from a job list , routines and shared containers

Posted: Mon Oct 04, 2010 1:07 pm
by chulett
That isn't what was suggested.

Posted: Mon Oct 04, 2010 2:26 pm
by kduke
DsExport.exe is a Windows or client based tool. istool is a server based tool. What Craig is suggesting that you need to pick the right tool to use if you want to run on the DataStage server. If you want to run DsExport then run it from your PC client.

Posted: Mon Oct 04, 2010 3:26 pm
by mandyli
DsExport.exe tool it is not in Version 8.1 . In version 8.1 new istool for job export from Windows.

If you want to export from UNIX. Please use UVEXPORT command.

Thanks
Man

Posted: Mon Oct 04, 2010 10:30 pm
by agpt
mandyli wrote:DsExport.exe tool it is not in Version 8.1 . In version 8.1 new istool for job export from Windows.

If you want to export from UNIX. Please use UVEXPORT command.

Thanks
Man
Hi,

What would be for import? UVIMPORT?

Posted: Mon Oct 04, 2010 11:06 pm
by kduke
DsExport.exe is on the client in 8.1. I use it all the time.

Posted: Tue Oct 05, 2010 12:03 am
by Thripura
Hi,
Can you please give me the complete command for UVEXPORT..

Posted: Tue Oct 05, 2010 2:36 am
by ArndW
In your on-line help guide open up the Designer Client Guide to Chapter 11, page 187 and you will find that it uses the following syntax:

dsexport.exe /D domain /H hostname /U username /P password /JOB jobname /XML /EXT /EXEC /APPEND project pathname1