Page 1 of 1

user variable activity

Posted: Thu Jul 19, 2012 9:59 am
by adityavinay
Can some one help me on how to convert string to integer in uservariable activity in sequencer.

I have a value in file , using 'Execute command Activity' i am reading the value and making it as parameter using 'User Variable Activity'. This parameter will be used in start loop.
Is it possible to convert the string (user variable) to integer value? If so can you please provide the Syntax to achieve it.

Thanks,
Vinay.

Re: user variable activity

Posted: Thu Jul 19, 2012 10:08 am
by adityavinay
Found the solution in publib.boulder.ibm.com
Using Oconv function this will be achieved.
syntax = Oconv("outputvalue", "MCN")

Posted: Thu Jul 19, 2012 10:10 am
by chulett
This isn't PX so you don't really need to explicity convert it. You do, however, need that function if you have to remove "non-numeric" values from the string. It is the equivalent of the DIGITS transform.