How to develop a custom stage to be used into sequences

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
Alethesnake
Participant
Posts: 56
Joined: Mon Mar 26, 2007 8:48 am
Location: Blue Bay (La Spezia)

How to develop a custom stage to be used into sequences

Post by Alethesnake »

Hi All,
Is it possible to develop custom stages for sequence usage?

I found several pieces of information regarding the development of custom parallel stages via the creation of a custom operator.
Is it possible to do something similar for sequences?

Thanks a lot for any information.

Regards,

Ale.
...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What kind of "custom stage" are you thinking of? Seems to me pretty much anything "custom" in a Sequence could be handled by either the Routine Activity or Execute Command stages.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Alethesnake
Participant
Posts: 56
Joined: Mon Mar 26, 2007 8:48 am
Location: Blue Bay (La Spezia)

Post by Alethesnake »

I think a big lack in datastage is the absence of a complete loop stage.

Actually if I want to loop on the rows of i.e. a flat file, grab its column values and pass them to another job I must use UtilityRunJob routine in a transformer stage.
However in this way I have to "drown" a job call in another job loosing a complete view of the flow from the master sequence (together with other defects of this procedure).
Actually I bypass the problem in the master sequence by:

counting file rows (n)
starting a loop activity 1 to n
"slicing" the first row of the file in the loop and putting it into the user status of the "slicer" job with an adequate column separator
splitting values and finally pass them to the target job..

But it's too laborious..

My goal would be to create a loop activity stage that read from a file and offer a row at each run.
...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You've already got that functionality with the UserVariables and Start/End Loop stages. You manually built something that it could have handled on its own as there's no need to count in your case. Simply use something in the UserVariables stage to supply the contents of the file in a 'delimited list' and the loop stages will automatically iterate through that list. :?
-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 »

Looping within the Transformer stage is "in the plan" for a future release, maybe even 8.2.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Alethesnake
Participant
Posts: 56
Joined: Mon Mar 26, 2007 8:48 am
Location: Blue Bay (La Spezia)

Post by Alethesnake »

ray.wurlod wrote:Looping within the Transformer stage is "in the plan" for a future release, maybe even 8.2. ...
That's a good news :), I hope it will come soon.
...
Post Reply