Hi am pretty new with datastage and working on parallel extender 7x..
am having problem with setting up the stage variable and beeded some help with the code.
i need to select the first position of abc_def= C from the incoming link and i used the following function Left("C",1)link.abc_def but it says SYNTAX ERROR
also i need to set the stage variable for count of records where abc_def = I and xyz_mno = EM
can anyone please help me with it..
stage variable help
Moderators: chulett, rschirm, roy
Use this to check whether first character is C
Use aggregator to count on abc_def and xyz_mno
If you can give sample input and expected output, we can help you better
Code: Select all
link.abc_def[1,1] = 'C'
If you can give sample input and expected output, we can help you better
You are the creator of your destiny - Swami Vivekananda
If you want to see the correct syntax for your previous effort:
That could be done as part of an if-then-else construct or left as-is to set a boolean value in a stage variable or constraint.
Code: Select all
Left(link.abc_def,1) = 'C'
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers