File: bcust.ace

package info (click to toggle)
gnats 3.113-13
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,640 kB
  • ctags: 2,917
  • sloc: ansic: 25,624; tcl: 8,071; sh: 5,362; perl: 3,619; makefile: 3,164; yacc: 820; lisp: 742; sql: 280; sed: 181
file content (69 lines) | stat: -rw-r--r-- 1,291 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
database engdb end

{xxx customize here xxx}
define 
  param [1] cust_id char(16)
end

output
  page length 66
  top margin 5
  bottom margin 3
  left margin 0

{xxx customize here xxx}
{report to "/s1/users/smlieu/chron/bugs/reports/cust.infx"}

end

select
{xxx customize here xxx}
	arrival,

	gnatsid,
	category,
	synopsis,
	severity,
	gnatsstate,
	gnatsclass,
        sevnum,
        sevstr,
        statenum,
        statestr
from gnats, statecode, severitycode

{xxx customize here xxx}
where 
      customer = $cust_id and
      severity=sevnum and
      gnatsstate=statenum
      order by category, gnatsstate, severity
end

format
  page header

{xxx customize here xxx}
    print column 1, "*** GNATS SUMMARY for ", cust_id clipped, " as of ", date, " ***",
          column 100, "Page", pageno
    skip 2 lines

    print 
          column  3, "Date", 
          column 13, "PR #", 
          column 25, "Program",
          column 37, "State",
          column 49, "Severity",
          column 63, "Synopsis"
    skip 1 line

on every row 
  print 
        column  3, date(arrival) using "yy-mm-dd",
        column 13, gnatsid clipped,
        column 25, category clipped,
        column 37, statestr clipped,
        column 49, sevstr clipped, 
        column 63, synopsis

end