home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2422 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  2.1 KB

  1. Path: sparky!uunet!ulowell!news.bbn.com!noc.near.net!mozz.unh.edu!kepler.unh.edu!wrt
  2. From: wrt@kepler.unh.edu (Walter R Trachim)
  3. Newsgroups: comp.databases.informix
  4. Subject: 4GL syntax questions
  5. Date: 13 Nov 1992 15:54:16 GMT
  6. Organization: University of New Hampshire  -  Durham, NH
  7. Lines: 46
  8. Message-ID: <1e0j38INNbk2@mozz.unh.edu>
  9. NNTP-Posting-Host: kepler.unh.edu
  10.  
  11.  
  12. I'm having a potentially simple, albeit boneheaded syntax problem that has me
  13. stumped. I wrote what I think is a simple program to generate a listing of
  14. network connections that we bill for here, and at the very beginning of the 
  15. file I'm getting syntax errors. I must be doing forgetting something elementary
  16. as this happens near the beginning of the first pass of the compile.
  17.  
  18. If I am doing something simple and stupid, I have to plead being a relative
  19. newcomer to 4GLs of any flavor, so no tongues of fire, please.
  20.  
  21. I've included the piece of the program where I'm running into trouble:
  22.  
  23. ================================================================================
  24. main
  25. define
  26.     install record like inst_all.*
  27.     port_map  record like prt_jck.*
  28. |_______________________^
  29. |
  30. |      A grammatical error has been found on line 14, character 25.
  31. | The construct is not understandable in its context.
  32. | See error number -4373.
  33.  
  34. (It almost looks as though I need a comma or some other delimiter to separate
  35. the record definitions. Am I right?)
  36.  
  37. declare
  38.     i_curs cursor for
  39.         select * from install
  40.     p_curs cursor for
  41.         select * from port_map
  42. ================================================================================
  43.  
  44. The reason I've included the declare statements is that if it is a mindless
  45. type of error, then I suspect I'll run into the same problem with those.
  46.  
  47. Any advice or constructive comment would be greatly appreciated. E-mail's
  48. okay - no need to tie up bandwidth.
  49.  
  50. Walt
  51.  
  52. -- 
  53.  Walter R. Trachim          |"And remember, my sentimental friend: the
  54.  UNH Telecom and Network Services | heart is not judged by how much you love,
  55.  Durham, NH 03824                 | but by how much you are loved by others."  
  56.  Walt_Trachim@unh.edu             |      --The Wizard of Oz 
  57.