I need to convert a 23 character field to 23 decimal field.
abc has the value '20060106170111137000001';
def is declared as zoned decimal (23,0)
when i am using this statement
def = %int(abc)
I am getting a runtime error with status code 103 indicating, 'An intermediate result is not large enough to contain the result.'
So, i declared a data structure 'xyz' containing 'def' as a subfiled.
And moved the field 'abc' to data structure 'xyz' to convert it. And it's working.
Is there any way to convert 23 character filed to numeric field.
abc has the value '20060106170111137000001';
def is declared as zoned decimal (23,0)
when i am using this statement
def = %int(abc)
I am getting a runtime error with status code 103 indicating, 'An intermediate result is not large enough to contain the result.'
So, i declared a data structure 'xyz' containing 'def' as a subfiled.
And moved the field 'abc' to data structure 'xyz' to convert it. And it's working.
Is there any way to convert 23 character filed to numeric field.
Comment