Hello All -
I am stuck in one situation where I need to understand - How can I achieve the For each block on the basis of some condition.
I am using OpenEdge 11.1.
I want to achieve something like that as I mentioned below (I know the below one is erroneous):
If condition-1 then do:
for each customer where custno >= 123 and date >= 12/12/12 and date <= 06/06/13 no-lock:
end.
else if condition-2 then do:
for each customer where custno >= 456 and date >= 04/12/13 and cust-name begins "Hav" no-lock:
end.
else do:
for each customer where custno >= 789 and cust-phone contains "065" no-lock:
end.
display cust-name
cust-phone
cust-no.
end.
I am stuck in one situation where I need to understand - How can I achieve the For each block on the basis of some condition.
I am using OpenEdge 11.1.
I want to achieve something like that as I mentioned below (I know the below one is erroneous):
If condition-1 then do:
for each customer where custno >= 123 and date >= 12/12/12 and date <= 06/06/13 no-lock:
end.
else if condition-2 then do:
for each customer where custno >= 456 and date >= 04/12/13 and cust-name begins "Hav" no-lock:
end.
else do:
for each customer where custno >= 789 and cust-phone contains "065" no-lock:
end.
display cust-name
cust-phone
cust-no.
end.