Read a dsx file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
eoyylo
Participant
Posts: 57
Joined: Mon Jun 30, 2003 6:56 am

Read a dsx file

Post by eoyylo »

Hi,
i'd like to read all information contained in a dsx file (an export of a DataStage's project).
I created the file with the only option "Job define" in the export tool.
In the file there are a lot of reserved words. Can anyone tell me where is possible to find documentation about them and documentation about the file's structure?

thanks in advance

Mario
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Mario

This is not documented anywhere. It is an Ascential file. If you want to process this same information then export in XML format. It is the same information in a standard format. Both of these are basically dumps of the DS_JOBOBJECTS hash file.

Kim.
Mamu Kim
Amos.Rosmarin
Premium Member
Premium Member
Posts: 385
Joined: Tue Oct 07, 2003 4:55 am

Post by Amos.Rosmarin »

Hi Mario,

If you'll specify the reason you need the dsx maybe you could get a better answer.

Looking at the DSX file you'll see that it's stracture is like xml - It has a fixed header and each element has an opening and a closing tag . Compare the dsx to the job you can link the different tags to satges, links, table definitions and the rest of the objects on the canvas.


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

Post by ray.wurlod »

You can even do two exports - one in DSX format and the other in XML format - and compare them.
eoyylo
Participant
Posts: 57
Joined: Mon Jun 30, 2003 6:56 am

Post by eoyylo »

Hi,
I want to read the dsx file (or XML, is the same) because i'd like to write a program that
1) can determine the resources used (file, oracle table etc) in order to calculate the execution precedences
2) extract the oracle query
3)plot the data traffic

i can't use metastage because the job's are developed in several server with different tnsnames.

Now i have hundred of jobsand it is impossible to calculate by hand.

I have understood the greater part of the reserved words but someone is mysterious.


Mario
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Mario

Why not use the Reporting Assistant (doc_tool.mdb)? It is in the DataStage Manager. It extracts all the SQL. You can connect to different DataStage servers. It is a little difficult to find it but we can help you.

When you say data traffic, what do you mean? I think most of us need to calculate bytes moving through each job. I think that would be a benefitial number to understand performance.

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

Post by ray.wurlod »

The reporting assistant (documentation tool) is to be preferred for another reason. If your data source names, user IDs, passwords, pathnames and the like are parameterized, which is recommended best practice as they can differ between development and production systems and/or can change over time, then all you have in the DSX file is the job parameter reference, for example #DSN#.

In the documentation tool you can create a join to the JobParameters table and the Properties table to decode at least the default values for these parameters.

To get the run-time values you need to have captured the process metadata as well. This information is in the job log (in the "Job Started" event). Note that encrypted parameters are reported using a standard string, so as not to give away, or even hint at, the encrypted value.
Post Reply