home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / 5863 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!newsun!jasonp
  2. From: jasonp@novell.com (Jason Pan)
  3. Newsgroups: comp.databases
  4. Subject: Re: dBase IV output question
  5. Message-ID: <1992Jul31.170027.470@novell.com>
  6. Date: 31 Jul 92 17:00:27 GMT
  7. References: <63130@cup.portal.com>
  8. Sender: usenet@novell.com (The Netnews Manager)
  9. Distribution: na
  10. Organization: Novell Inc., San Jose, Califonia
  11. Lines: 39
  12. Nntp-Posting-Host: ka.novell.com
  13.  
  14. In article <63130@cup.portal.com> amigan@cup.portal.com (R Michael Medwid) writes:
  15. >dBase IV questi
  16. >
  17. >I would like to import some data from a dBase program into Lotus 1-2-3
  18. >so I can use the fancy printing features of its ""Impress" add-in.  In
  19. >my dBase program I create a bunch of variables e.g.
  20. >
  21. >SUM COST FOR TERR="1111" .AND. PROD="VOL" .AND. TYPE="MLS" TO MVAR1
  22. >SUM COST FOR TERR="1112" .AND. PROD="VOL" .AND. TYPE="MLS" TO MVAR2
  23. >SUM COST FOR TERR="1113" .AND. PROD="VOL" .AND. TYPE="MLS" TO MVAR3
  24. >
  25. >(etc.)
  26. >
  27. >I now want to take MVAR1, MVAR2 and MVAR3 and get them either into
  28. >a database or into cells of a spreadsheet.  I know how to write these
  29. >to a flat file.  But to bring a flat file to lotus requires you then
  30. >"parse" the data to get the data elements into individual cells, not
  31. >a lot of fun.
  32. >
  33.  
  34. You could use the TOTAL command.  Total will sum your numberic field
  35. and create a second database file to hold the results.  The database
  36. file must be either INDEXED or SORTed on the key field.
  37.  
  38. An example would be:
  39.  
  40. USE SALES.DBF ORDER TERR
  41. TOTAL ON TERR to TEMP.DBF FOR PROD="VOL" .AND. TYPE="MLS"
  42.  
  43. all numeric fields will be totaled unless limited by the "FIELDS" option. See
  44. your manual for more info.
  45.  
  46. ------------------------------------------------------------------------------
  47. Jason C. Pan
  48. Systems Engineer
  49. UNIVEL                                                jpan@univel.com
  50. a Partnership of Novell and USL                       jasonp@novell.com
  51. ------------------------------------------------------------------------------
  52.