Pre-Processor Question
Hi All,
I want to build a for each loop that let's the user choose the field order of the break by statement. How can I do this? I thought about using the pre-processor to do it but can't get it to work...
if choice = "Product Line" then do:
&scoped-define str pt_prod_line
end.
else do:
&scoped-define str pt_part
end.
for each pt_mstr no-lock by {&str} :
display {&str} .
end.
This won't work because str will always end up being defined as pt_part (obviously), but it gives you an idea of what I am trying to do.
Thanks,
Rob
Hi All,
I want to build a for each loop that let's the user choose the field order of the break by statement. How can I do this? I thought about using the pre-processor to do it but can't get it to work...
if choice = "Product Line" then do:
&scoped-define str pt_prod_line
end.
else do:
&scoped-define str pt_part
end.
for each pt_mstr no-lock by {&str} :
display {&str} .
end.
This won't work because str will always end up being defined as pt_part (obviously), but it gives you an idea of what I am trying to do.
Thanks,
Rob