I did UNSTRING of a source dataset like this : UNSTRING source_dsn delimited by "." INTO Q1, Q2, Q3
But now I want to UNSTRING it into unknown number of qualifiers. For that I declared an array (occurs 15 times) and did UNSTRING like this :
perform varying i from 1 by 1 until i<=15
UNSTRING source_dsn delimited by "." INTO Q(i)
But this will always give me the first qualifier, could somebody suggest me an approach as to how it could it be done?