Modify Stage Conversions.

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
iwin
Premium Member
Premium Member
Posts: 99
Joined: Mon Apr 11, 2005 9:20 pm

Modify Stage Conversions.

Post by iwin »

Hi,
I am trying to do 3 conversions on 3 different columns and i am using Modify Stage.
1) trim to 7 characters on CART
2) trim SITE
3) @null on MIN_PRES.

Code:


CART:string(7)=substring[0,7] (Mat)
SITE=string_trim(Plant)
MIN_PRES=make_null()

I get the following errors after the run.

Error:

main_program: Error parsing modify adapter: Error in binding: Expected '=', got: "("
Expected destination field selector, got: ")"; input:
CART:string(7)=substring[0,7] (Mat)
;
SITE=string_trim(Plant)
;
MIN_PRES=make_null()


I am not sure where i am going wrong. kindly advice.

Thanks
Every person you meet knows something you don't, Learn from them.
-- H. Jackson Brown
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Try using "CART:string[7]=substring[0,7] (Mat)"
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Square brackets not parentheses. string[7] rather than string(7).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
iwin
Premium Member
Premium Member
Posts: 99
Joined: Mon Apr 11, 2005 9:20 pm

Post by iwin »

Thanks Arnold and Ray,
I did use [] after posting the topic but it didnt work and coming to other 2 columns, please suggest what is wrong. As i did try converting each columns in a seperate job to see what is wrong but i get the same error message.
Every person you meet knows something you don't, Learn from them.
-- H. Jackson Brown
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please post the record schema from the input link and from the output link. You can most easily get these from the generated OSH.
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