JoseKreif
Member
This is probably a rookie mistake, but I can't see why it doesn't work.
On line 4 I get
"** Missing FOR, FIND or CREATE for table state. (93)
Could not understand line 4. (196) "
I am using Progress Character-Mode 10.2b.
I'm just playing around with the Accum and break by feature so I can begin optimizing some real reports.
EDIT:
The above code is kind of messy. Here is a more fluent version
EDIT 2: Never mind, I found out that it's an ambiguous problem. I have a table named "State"
I have to display custs.state
Code:
for each custs break by state:
if first-of(state) then display state.
accumulate discount (sub-total by state).
display num name discount (total by state).
if last-of(state) then
display state ACCUM sub-total by state (discount).
end.
On line 4 I get
"** Missing FOR, FIND or CREATE for table state. (93)
Could not understand line 4. (196) "
I am using Progress Character-Mode 10.2b.
I'm just playing around with the Accum and break by feature so I can begin optimizing some real reports.
EDIT:
The above code is kind of messy. Here is a more fluent version
Code:
for each custs break by state:
if first-of(state) then display state.
display num name discount (total by state).
end.
EDIT 2: Never mind, I found out that it's an ambiguous problem. I have a table named "State"
I have to display custs.state
Last edited: