Consecutive Generic stages problem...

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
legendkiller
Participant
Posts: 60
Joined: Sun Nov 21, 2004 2:24 am

Consecutive Generic stages problem...

Post by legendkiller »

Hi All,

I have job which has a sequential stage followed by two generic staage and a final sequential file stage.

In first generic stage I am copying input to output...say...
out.inputcolumn=in.inputcolumn

and in second generic stage i am doing
in.inputcolumn=substring(in.inputcolumn, 0,1)

my problem is datastage not executing lodic part in second generic stage and directly writing complete input value( as output of generic stage 1) in output rather that substring string( as output of second generic stage)...

Interestingly if i only keep second generic stage then that logic is working fine...

I have tried diff things like defining different columns...difining input and output schema on generic stages but...problem was not resolved...
Any Pointers to above probblem???
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Consecutive stages of the same type are not supported for some stage types, such as Modify stage. Put a Copy stage between them.
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 by 'generic' stage, I assume they mean... transformer? :?
-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 »

No. There is a stage type called Generic. RTFM?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
legendkiller
Participant
Posts: 60
Joined: Sun Nov 21, 2004 2:24 am

Post by legendkiller »

ray.wurlod wrote:No. There is a stage type called Generic. RTFM? ...
ya but i am calling transform operator...from generic stage.....

in a job if i put only one generic stage then it;s works fine.....problem is with secong genric stage.....it seems that job is just ignoring second generic stage....even preint_message statement are not displyaing anything for second generic stage
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ray.wurlod wrote:No. There is a stage type called Generic. RTFM?
Wondered about that right after I posted, but didn't feel like R'ing the FM so decided to expose my ignorance for all to see.
-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 »

Put a Copy stage between them, as advised earlier in this thread.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply