Qustion in Quiz

eric_therrien@cgtx.ca eric_therrien@cgtx.ca
Mon, 26 Oct 98 10:37:29 -0500


Hi,

This is probably a trick question with no real answer, but anyway, here it
come...

I'm looking at an invoice I have to re-design. That invoice is currently in
Cobol, giving my great « love » for Cobol, I was thinking about doiing it all
over in Quiz. If I was to write it. The thing is that the invoice, now, must
look something like this :

[Header, client adress that's a no brainer ]
[Detail, no brainer to                     ]
[lots of detail obviously                  ]
(...)
[Detail line                               ]    [some adress information]
[Last detail line                          ]    [some adress information]
[Summary right at the bottom of the page (3 last lines are use for this)]

Unfortunately, I can not expect to have always 15 details lines (in that case).
I was thinking about feeding some « dummy » blank line, to get to a multiple of
15, so that each invoice are « full » kind of. Using COUNT to keep track of
which line I'm to I could find how much I need to feed it to get to my multiple
of 15. I know that using COUNT, I would have to output it to a subfile first, so
that I can actually use COUT as a variable (unless I'm wrong), but that doesn't
bother me since I need to also print a summary, so I would have a need for the
same data anyway. Then passing throught the subfile I could always find how many
record are actually in the subfile for each client and find out how many I need
to get to 15... Using COUNT I could print the adress information when I would
get to a modulo 13 and 14 only. And having always 15 records per invoice I would
end up with the summary on the right line...

So my questions are : first, as anyone done something like this and is it worth
it and second, what would you suggest as a way to feed dummy line to the detail?
I was thinking about reading the subfile back, taking the last record COUNT for
a client out, going back throught that file and figuring how many record to
add... But that's kind of where I am right now...

I know it's a long shot, but I had the idea and need to see if it's worth it or
not...

Thank you for all the answers.

Eric Therrien, analyst-programmer, IT



= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.