Hello,
I am trying to pad a stage variable with zeros in front of it. This stage variable is a counter, but it is not static counter; it resets to zero often. So it is unsure how many characters will be in the stage variable at a given time. Also, the stage variable has to be 3 characters long, and it is a Char variable type. I am trying to do this in a transformer, if possible. Does anyone have any suggestions?
I tried PadString function but that did not work...
Padding a Stage Variable with zeros in front
Moderators: chulett, rschirm, roy
Padding a Stage Variable with zeros in front
Jweir
--- If strength were all, tiger would not fear scorpion.
--- If strength were all, tiger would not fear scorpion.
-
- Premium Member
- Posts: 48
- Joined: Tue Nov 25, 2008 11:10 pm
- Location: Des Moines,IA
It means that the variable has to be 3 chars long. But the counter will be an unknown length inside the variable. I suppose you needed a little bit more explination.datskosaraju wrote:"So it is unsure how many characters will be in the stage variable at a given time. Also, the stage variable has to be 3 characters long"
The above statements are a perfect contradiction.
Jweir
--- If strength were all, tiger would not fear scorpion.
--- If strength were all, tiger would not fear scorpion.
-
- Premium Member
- Posts: 48
- Joined: Tue Nov 25, 2008 11:10 pm
- Location: Des Moines,IA