Generate data stage jobs?

Dedicated to DataStage and DataStage TX editions featuring IBM<sup>®</sup> Service-Oriented Architectures.

Moderators: chulett, rschirm

Post Reply
dkaranth
Participant
Posts: 9
Joined: Tue May 20, 2008 3:51 am

Generate data stage jobs?

Post by dkaranth »

Hi all,
Is there any way I can generate the xml for a datastage job and then import it into my environment? The requirement is that different jobs need to be generated for different user needs at runtime.

For eg, I may not need the transformer stage on some condition provided by the user at runtime. If I had designed the job in designer, then this stage will always be there.

Thanks!
Deepak
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Wow. While I have been involved in generating fixed design jobs based on variable metadata, I can't imagine being able to do this based on the whim of 'different users needs at runtime'. And I don't see how 'user needs' play all that much into the ETL world. Who would these users be? What kind of needs are you anticipating? You sure this isn't more the purview of a BI tool in the hands of a 'Power User'? :?

Well... at some point here there will be Fast Track, which generates jobs based on Excel source-to-target mappings. Or at least as much of a job as it can based on what it was given, which would then be fleshed out by an ETL developer. But trying to roll your own, generating .xml or .dsx formatted 'code' based on user 'needs'... I don't see it.

Curious what others think.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

While waiting (and waiting) for this to post, noticed the forum I had ended up in. Since this really doesn't have anything to do with RTI...

Moderator, please do the needful and move this to the PX forum.

Tanks. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is a vague logic to the choice of forum - the OP requires dynamic design in real time.

Some parts of it can be done (for example by specifying entire expressions as parameters) but, as a general observation, I'd have to agree with Craig that it does not sit well as something one would expect to do with an ETL tool.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

Someone at IOD last year mentioned they had built a processing engine using Parallel jobs with custom stages or native stages where all the column metadata came from schema files, the database commands were SQL files and the modify commands passed in as job parameters. You need a lot of skill in parallel jobs to set this up and some coding outside of DataStage to generate all the required files and commands.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I have a routine which generates XML definitions which can be imported into DataStage. It was fairly easy to build. Just export a table in XML format and generate the same format.
Mamu Kim
Post Reply