On PLI/XML Parser:
I am using dynamic array concept to declare array element G_AREA,
G_AREA is a value that we get from an xml,i dnt know how much time the G_AREA occur's in the xml(it is defined as unbounded in xsd).
But i can find the occurence at the end of program(After processing is complete)
is there any way to allocate a dynamic array based on it's occurence?
Now i am using code:
DCL 1 G_AREA (*) CTL,
3 G_FC CHAR(2),
3 GCODE CHAR(2),
3 GNAME CHAR(50),
3 GE_FC CHAR(2),
3 GPARENT CHAR(50);
ALLOCATE G_AREA(100)
But if i get G_AREA,no of instances >100,it will be a pbm.
So pls let me know if i can do it somehow in PLI