Routine

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
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Routine

Post by samba »

Can i call server routine in parallel job, if it is possible how to call routine in before/after job subroutine, its not available under before/after job subroutine, can u please help me regarding this
samba
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Server routines can be called in parallel jobs:

a) in the job Before/After
b) from BASIC transform stages
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Post by samba »

what are Basic transformation can u explain me
samba
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

Basic transformer is a stage in PX just like any other stages like copy,modify.. It is similar in functionality to server edition transfomer. You can call server routines in px just the way you call the server routine in server edition.Please read chapter 17 in parallel job developer guide for more information as to how to use the stage.
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Can we call it in normal Transformer?

Post by Roopanwita »

Can we call it in normal Transformer?As in my pallate I am not able to see Basic Transformer(Parallel Extender 7.5.1) and in my source data one date column is coming as '1-Jan-2000',(Source is sequential File) and I need to convert it into dd/mm/yyyy format .I wrote a server routine for converson,but I am unable to call this routine in Transformer.
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Can we call it in normal Transformer?

Post by Roopanwita »

Can we call it in normal Transformer?As in my pallate I am not able to see Basic Transformer(Parallel Extender 7.5.1) and in my source data one date column is coming as '1-Jan-2000',(Source is sequential File) and I need to convert it into dd/mm/yyyy format .I wrote a server routine for converson,but I am unable to call this routine in Transformer.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's preferable to use parallel functions rather than server routines in parallel jobs. Your transformation can be readily achieved using DateToString() nested inside StringToDate() if the source and target data types are date or the reverse nesting if the data types are string.

BASIC Transformer stage can be found in the Stage Types branch of the Repository. That it is not in the Palette is deliberate (though you can customize your Palette) because they would prefer that you don't use it.

:idea:
Stop using a server job mindset when creating parallel jobs.
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 »

balajisr wrote:Basic transformer is a stage in PX just like any other stages like copy,modify.. It is similar in functionality to server edition transfomer. You can call server routines in px just the way you call the server routine in server edition.Please read chapter 17 in parallel job developer guide for more information as to how to use the stage.
And then avoid using them if at all possible. Think Parallel not Server - and as Ray notes, there's a reason it's not on the pallete by default.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply