Datastage Projects Using Command line to Create/Delete/View

DSADMIN Command to Create/Delete/View Datastage Projects from Command line Unix/Linux
This post will help you to understand Create/Delete and View of DataStage Projects from command line[Unix].

Note : Always use DSADM user to create or delete projects.

Check List Of Datastage Projects from Command Line:
——————————————————————–

DSHOME=`cat /.dshome`;
echo $DSHOME

DSHOME=`cat /.dshome`
cd $DSHOME
. ./dsenv
cd ./bin
./dsjob -lprojects    =>{ For Listing the Datastage Projects}
./dsjob -ljobs project   =>{ For Listing the Datastage Jobs in given Project}


Create Projects From Command Line
———————————————–

DSHOME=`cat /.dshome`
cd $DSHOME
. ./dsenv
cd bin
./dsadmin -domain XYZ1234 -user dsadm -password dsadm -server XYZ1234 -createproject Test1 -location /tmp/Test1


Syntax : ./dsadmin -domain [domain] -user [user] -password [password] -server [server] -createproject [project name] -location [prjoect path/NewProjectName];

Delete Projects From Command Line
———————————————–

DSHOME=`cat /.dshome`
cd $DSHOME
. ./dsenv
cd bin
./dsadmin -domain XYZ1234 -user dsadm -password dsadm -server XYZ1234 -deleteproject Test1
Syntax : ./dsadmin -domain [domain] -user [user] -password [password] -server [server] –
deleteproject [project name];

Leave a Reply

Your email address will not be published. Required fields are marked *