In DataStage Administration, we have to use datastage command line (universe shell) to get the information directly from the datastage universe database.
While accessing it from command line what novice admin do is -
Confused ? What to do ?
$ uvsh This directory is not set up for DataStage.
Would you like to set it up(Y/N)?
Always answer that question "no", it means you're in the wrong place.
Always launch "uvsh" or "dssh" from one of two places - $DSHOME or inside a project directory. For the latter you're good to go, for the former you'll need to LOGTO your project name before you issue any sql.
How to use UVSH?
## Entered into the $DSHOME $ cd $DSHOME ##Sourced the dsenv file $ . dsenv ## Change directory to the project directory. $ LOGTO <project_name> ## Run uvsh command $ $DSHOME/bin/uvsh
Many Datastage admin support to execute command from Datastage Administrator or use dssh instead of uvsh.
How to use DSSH?
##Sourced the dsenv file $ . $DSHOME/dsenv ## Change directory to the project directory. $ LOGTO <project_name>## Run dssh command $ $DSHOME/bin/dssh