TrimLeadingTrailing() function usage in Transformer

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
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

TrimLeadingTrailing() function usage in Transformer

Post by satish_valavala »

We have job, in which we are using TrimLeadingTrailing() function twice in the derivation for about 200 fields.
Is there any limitation on usage of TrimLeadingTrailing() function in Parallel job Transformer stage.
Regards
VS
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There shouldn't be. Why might you believe that there is?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

Post by satish_valavala »

Job can able to compile upto certain number of columns with TrimLeadingTrailing function, after that its throwing the following warning.

1500-008: (S) COMPILER LIMIT EXCEEDED in APT_TransformOperatorImplV0S2_xyz_stage_xyzload_X_del_inst_upd::processInputRecord(int): Program too complicated to be compiled. Compilation ended. Reduce the complexity of the program and recompile, or lower the level of optimization and recompile.
Regards
VS
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I think TrimLeadingTrailing is a macro and not its own function, try using TRIM(InColumn,'B') to see if the complexity is reduced.
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

Post by satish_valavala »

Sure we can try TRIM(InCol,'B'). Is this macro usage of multple times a limitation to the compiler. Are there any Environment variable realted to compiler to set it. I am not sure.
Regards
VS
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

This looks like an IBM c++ compiler problem that you can search on the internet. Turn off optimization in the stage-specific compiler options for the transform stage, that should do the trick as well.
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

Post by satish_valavala »

How to turn off optimization in the stage-specific compiler options for the transform stage. Will it effect the particular job or entire project.
Regards
VS
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Open up your transform stage details and set the compiler flags, including the "-O0" option, in the "Compiler Flags" line f the "Build" tab.
I don't think that there is much of a penalty if you remove the optimization at the project level (through the Administrator tool), since much of transform processing is simple if-then-else that cannot be optimized much.
satish_valavala
Participant
Posts: 123
Joined: Wed May 18, 2005 7:41 am
Location: USA

Post by satish_valavala »

We have tried -O0 option in Compiler Flag of the Transformer Stage properties Build tab, but no luck. Does the Workstation memory(RAM) matters at the time of DS Job compilation.
Regards
VS
Post Reply