home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!newsun!jasonp
- From: jasonp@novell.com (Jason Pan)
- Newsgroups: comp.databases
- Subject: Re: dBase IV output question
- Message-ID: <1992Jul31.170027.470@novell.com>
- Date: 31 Jul 92 17:00:27 GMT
- References: <63130@cup.portal.com>
- Sender: usenet@novell.com (The Netnews Manager)
- Distribution: na
- Organization: Novell Inc., San Jose, Califonia
- Lines: 39
- Nntp-Posting-Host: ka.novell.com
-
- In article <63130@cup.portal.com> amigan@cup.portal.com (R Michael Medwid) writes:
- >dBase IV questi
- >
- >I would like to import some data from a dBase program into Lotus 1-2-3
- >so I can use the fancy printing features of its ""Impress" add-in. In
- >my dBase program I create a bunch of variables e.g.
- >
- >SUM COST FOR TERR="1111" .AND. PROD="VOL" .AND. TYPE="MLS" TO MVAR1
- >SUM COST FOR TERR="1112" .AND. PROD="VOL" .AND. TYPE="MLS" TO MVAR2
- >SUM COST FOR TERR="1113" .AND. PROD="VOL" .AND. TYPE="MLS" TO MVAR3
- >
- >(etc.)
- >
- >I now want to take MVAR1, MVAR2 and MVAR3 and get them either into
- >a database or into cells of a spreadsheet. I know how to write these
- >to a flat file. But to bring a flat file to lotus requires you then
- >"parse" the data to get the data elements into individual cells, not
- >a lot of fun.
- >
- >
-
- You could use the TOTAL command. Total will sum your numberic field
- and create a second database file to hold the results. The database
- file must be either INDEXED or SORTed on the key field.
-
- An example would be:
-
- USE SALES.DBF ORDER TERR
- TOTAL ON TERR to TEMP.DBF FOR PROD="VOL" .AND. TYPE="MLS"
-
- all numeric fields will be totaled unless limited by the "FIELDS" option. See
- your manual for more info.
-
- ------------------------------------------------------------------------------
- Jason C. Pan
- Systems Engineer
- UNIVEL jpan@univel.com
- a Partnership of Novell and USL jasonp@novell.com
- ------------------------------------------------------------------------------
-