Datastage adminstrator

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mayura
Participant
Posts: 40
Joined: Fri Aug 01, 2008 5:58 am
Location: Mumbai

Datastage adminstrator

Post by mayura »

Hi,
Please let me know the command to view the routine in datastage admin command line.

thanks,
Datastagepx 8)
Mayura
dsouza.adithfrancis
Participant
Posts: 16
Joined: Sun Oct 07, 2007 12:42 am

Post by dsouza.adithfrancis »

This is a command line input in DS Adminstrator .
SELECT * FROM DS_ROUTINES WHERE NAME ='ROUTINE NAME' ;

regards
Francis Adith
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: Datastage adminstrator

Post by ray.wurlod »

mayura wrote:Hi,
Please let me know the command to view the routine in datastage admin command line.

thanks,
Datastagepx 8)
Why?

The routine source code is stored in a database table. It is not one of the fields displayed by SELECT * FROM DS_ROUTINES; query.

What do you actually need to achieve?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And are we talking a Server routine or a Parallel one as the post is marked?
-craig

"You can never have too many knives" -- Logan Nine Fingers
mayura
Participant
Posts: 40
Joined: Fri Aug 01, 2008 5:58 am
Location: Mumbai

Re: Datastage adminstrator

Post by mayura »

ray.wurlod wrote:
mayura wrote:Hi,
Please let me know the command to view the routine in datastage admin command line.

thanks,
Datastagepx 8)
Why?

The routine source code is stored in a database tab ...
hey routines are not stored in database.It is datastage..
and need command to view routines by login to datastage admin and select project name -> command -> and then command to view routines ... :?:
Mayura
mf_arts
Participant
Posts: 21
Joined: Wed Oct 19, 2005 5:10 am
Location: Dublin

Post by mf_arts »

Hi Mayura,

Create a Server job insert either an Universe Stage or a Hash File Stage as a source stage, put some transformer in the middle and a Sequence File as Target stage, link source to transformer and transformer to target stage.
To configure UV stage in Stage tab define Data Source Name as localuv, in Outputs tab define Table Names as DS_ROUTINES in Columns define a field called DSRID Varchar 255 and if you need, other field called CATEGORY again Varchar 255, on Selection tab define Where clause: DSRID NOT LIKE '\\%' ORDER BY DSRID ASC. In the View SQl tab you should see the follow: SELECT DSRID FROM DS_ROUTINES WHERE DSRID NOT LIKE '\\%' ORDER BY DSRID ASC;

To configure Hash File stage, in the Stage tab select User Account Name, define the same columns as for UV stage (DSRID and CATEGORY) and view data.

The Universe File structure for DS_ROUTINES is the follow:
DSRID
READONLY
OLETYPE
CATEGORY
DESC
ROUTINETYPE
JOBTYPEIND
PLATFORMTYPE
JOBTYPE
Do not do any changes on this table if you're not having work experience with Universe, the UV file can become corrupt and your project crash. Take all necessary measures in order to backup your work before doing any kind of experiments.

Regards,
Mario Fernandes

An expert is one who knows more and more about less and less. - Nicholas Murray Butler
Post Reply