home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / ingres / 1943 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!csc.canberra.edu.au!news
  3. From: mmr@asgserver.canberra.edu.au (Micheal Rainford-Watson)
  4. Subject: Passing a WHERE clause to Report Writer
  5. Message-ID: <1992Nov20.021456.903@csc.canberra.edu.au>
  6. Keywords: Report Writer
  7. Sender: news@csc.canberra.edu.au
  8. Organization: University of Canberra
  9. Date: Fri, 20 Nov 92 02:14:56 GMT
  10. Lines: 40
  11.  
  12. I'm trying to pass a where clause to report writer to establish a
  13. sort of flexible labels program. The problem is when report tries to
  14. use the where clause it gets confused. ie:
  15. 4GL:
  16.  
  17. za_conditions = 'employee_code='+''''+'600307'+''''+' and status='+''''+'e'+'''';
  18. CALL REPORT( sourcefile = '/home/user/asg/mmr/projects/labels/labels.rw',
  19.              flags      = '-h -s',
  20.              param      = 'conditions ="' +:za_conditions 
  21.                 +'" address_type="C" confidential="Y"');
  22.  
  23.  
  24. Report Writer:
  25.  
  26. .QUERY
  27.     select    name,
  28.         pr_location  = j.pr_cjob_name,
  29.         address_line1,
  30.         address_line2,
  31.         address_line3,
  32.         post_code
  33.     from    ahvemplabels e, prtcostj j
  34.     where    $conditions
  35.  
  36. The parameter conditions is passed as employee_code='600307' and status='e' but
  37. the Report program thinks that 'e' is a column. This is the error
  38.  
  39. E_US0836 line 1, Column 'e' not found in any specified table.
  40.  
  41. Maybe I'm expecting too much?
  42.  
  43. Platform is Ingres SunOS Version 6.3/01 (su4.u42/01)
  44.  
  45. Any suggestions?
  46.  
  47. -- 
  48. Micheal Rainford-Watson        _--_|\   E-Mail: mmr@asgserver.canberra.edu.au
  49. Administrative Systems Group  /      \  Phone : +61 6 201 2397
  50. University of Canberra        \_.--.*/  Mail  : PO Box 1 BELCONNEN ACT 2616
  51. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^v^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  52.