Sample Data Below
As you can see, the Days column may not contain anything or may contain 3 Days or more.
I would like to create an array for the Days so I can reference them in other formulas.
This is what I have so far. I am getting a "A subscript must be between 1 and the size of the array" error.
I have checked for Days that are not null and included an array limit but that doesn't seem to work.
Any ideas ?
XIR2 on Unix Solaris
Informatica 7.1.3
CRXIR2, Oracle 9i/10g
Code:
Item Days
----+-----------------------------------+
A 2009-01-10, 2009-01-15, 2009-02-14
B
C 2009-03-24, 2009-04-23
D 2009-05-20
As you can see, the Days column may not contain anything or may contain 3 Days or more.
I would like to create an array for the Days so I can reference them in other formulas.
This is what I have so far. I am getting a "A subscript must be between 1 and the size of the array" error.
I have checked for Days that are not null and included an array limit but that doesn't seem to work.
Any ideas ?
Code:
local numbervar limit:= ubound(split({Days},','));
local stringvar array dates;
local numbervar x;
if Not IsNull({Days}) then (
for x := 1 to limit do (
dates [x] := split({Days},',')[x];
);
dates[x];
);
XIR2 on Unix Solaris
Informatica 7.1.3
CRXIR2, Oracle 9i/10g