- This topic has 13 replies, 8 voices, and was last updated 16 years ago by .
-
Topic
-
I am trying to interate across repeating ROL segments to say if ROL.3 =PP then inside that interate say interate on field ROL.4 if ROL.4.08 =89 then copy ROL.4.0 to PD1.4. I can not get the second interation to work is this even possible? this is what I have
{ { OP ITERATE }
{ BASIS 0(0).ROL }
{ VAR %s1 }
{ TYPE segment }
{ BODY {
{ { OP IF }
{ ERR 0 }
{ COND { 0(0).ROL(%s1).#3 eq =PP} }
{ THENBODY {
{ { OP ITERATE }
{ BASIS 0(0).ROL(%s1).#4 }
{ VAR %f5 }
{ TYPE field }
{ BODY {
{ { OP IF }
{ ERR 0 }
{ COND { 0(0).ROL(%s1).#4(%f5).[8] eq =89} }
{ THENBODY {
{ { OP COPY }
{ ERR 0 }
{ IN {{0(0).ROL(%s1).#4(%f5).[0]}} }
{ OUT {{0(0).PD1.#4(0).[0]}} }
}
- The forum ‘Cloverleaf’ is closed to new topics and replies.