max limit in in setting array

hi,
iam getting error when i assign a variable to an array of more that 315 character in length

set -A array <variable>
<variable> value is 000001 000002 and up to 000045

it is giving error as
"The specified subscript cannot be greater than 1024."

can any one help me to solve this

In ksh the limit is 1024 elements in an array. zsh, ksh93, and bash all have pretty much unlimited arrays.

is there any other way to overcome this