Sumit,
You would get a much better response if you posted your Enform query
so that people could have a look.
declare cntnum;
set cntnum to 0;
list
by TERM.TERM-ID NOPRINT,
cntnum := count (CRD.CARD.CRD-NUM OVER TERM.TERM-ID) NOPRINT,
(if cntnum >= 10 then TERM.TERM-ID ELSE BLANK),
(if cntnum >= 10 then cntnum ELSE BLANK),
WHERE
auth.typ = 420
NOHEAD ALL;
To explain: I want to count the cards that have an AUTH.TYP = "420"
and then print TERM.TERM-ID and COUNT only for those that have count
greater then 9. I even tried SUPPRESS but it only suppresses "cntnum"
and still prints the TERM.TERM-ID on the line.
Let me know if I should change the query to get the desired results or
else a way around it....
Thanks in advance,
Sumit
declare cntnum INTERNAL I9;
set cntnum to 0;
list
by TERM.TERM-ID NOPRINT,
cntnum := (if auth.type = 420 then
cntnum + 1
else 0) NOPRINT,
before change TERM.TERM-ID
PRINT
TERM.TERM-ID ","
(if cntnum > 9 then cntnum ELSE 0)
;
This will summarize the count for each TERM-ID and resulted in fewer blank
lines. At each change of TERM-ID, cntnum with a value of 9 or less will
print a zero instead.
The "," that separates the TERM-ID and cntnum is to make it easier to import
the resulting spooler report into a spreadsheet as comma separated value.
Once imported into a spreadsheet, you can sort and filter as you like.
Hope this will work for you.
Paul
"Sumit Varshney" <sumit_v...@hotmail.com> wrote in message
news:adf49f26.02070...@posting.google.com...