for   
Save 
Save 
   Join IIUG  

Informix News
04 December 08 - Steeleye - Multicarta achieves 99.997% uptime for its Informix-based Credit Card Authorization Centre... Read
16 October 08 - VendorRate - Informix Earns Top Customer Satisfaction Score on VendorRate in Q3... Read
14 August 08 - IIUG.org - Sellout Expected for the 2009 IIUG Informix Conference... Read
29 April 08 - IntelligentEnterprise.com - IBM Informix Upgrade Enhances Clustering, Database Management... Read
29 April 08 - itweek.com - IBM 'Cheetah 2' mauls data costs... Read
28 April 08 - eWeek.com - IBM Uncages Cheetah 2 Data Server... Read
28 April 08 - CNNMoney.com - IBM Helps Clients Reduce Data Management Costs With New Informix Dynamic Server... Read
09 April 08 - CNNMoney.com - MediaSpan Embeds IBM Informix Dynamic Server Software for Delivering News to Print, Web and Wireless Devices... Read
08 April 08 - IT-Director.com - Informix seeks developers... Read
18 February 08 - marketwire.com - Icarus Studios Partners With IBM to Upgrade Performance, Availability for Its Online Games... Read
17 January 08 - eWeek.com - IBM Adds Mac Support to IDS for Higher Education... Read
17 January 08 - informationweek.com - Lotus Notes For iPhone Signals Closer Ties Between IBM, Apple... Read
16 January 08 - marketwire.com - IBM Informix Dynamic Server to Deliver Support for Mac OS X... Read
16 January 08 - internetnews.com - IBM's IDS to Support Mac Platform... Read
28 June 07 - REG Developer - IBM and Informix tie down Cheetah... Read
27 June 07 - CBRonline.com - IBM corrects its own Informix customer figures... Read
14 June 07 - vnunet.com - IBM changes spots with Informix 'Cheetah' database... Read
14 June 07 - eChannelLine - IBM expands scope for IDS... Read
14 June 07 - Resellernews - IBM: Informix database alive and kicking... Read
13 June 07 - DB2 Magazine - Cheetah is now out of the gate... Read
12 June 07 - IBM - IDS 11 release announcement (pdf)... Read
12 June 07 - ChannelWeb Network - IBM Uncages IDS 11, Aka Cheetah, Database... Read
12 June 07 - eWeek.com - IBM's 'Cheetah' Ready to Pounce... Read
12 June 07 - InformationWeek - IBM Unleashes 'Cheetah' Database... Read
12 June 07 - WebWire - IBM Strengthens Database Portfolio With New Informix Dynamic Server... Read
12 June 07 - Intelligent Enterprise - IBM Unveils Informix Upgrade... Read
12 June 07 - ComputerWeekly.com - IBM's Cheetah IDS makes leap to better data centre clustering... Read
12 June 07 - ebiz - IBM Unveils Next Generation Informix Dynamic Server... Read
12 June 07 - computerworld.com - Will 'Cheetah' help IBM's Informix chase down market share?... Read
12 June 07 - Internetnews.com - No Data Can Outrun This 'Cheetah'... Read
12 June 07 - de.internet.com - IBM neuer Datenbank-Server mit Codenamen Cheetah ist fertig... Read
12 June 07 - verifox.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - golem.de - Informix 11 vorgestellt... Read
12 June 07 - Computerwoche.de - IBM stellt neue Informix-Version vor... Read
12 June 07 - IBM.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - Heise - IBM gibt Informix 11 frei... Read
25 May 07 - Taiwan.CNET.com - Local Taiwan Informix user group established... (Chinese language) ... Read
18 May 07 - ChannelWeb Network - IBM Musters Partners For Cheetah Release... Read
18 May 07 - eWeek.com - IBM Looks to 'Cheetah' to Speed Up Blade Servers... Read
7 May 07 - DB2 Magazine - SQL Shortcuts - Use these tricks to generate IDS SQL scripts... Read

Previous news items
 

Home Member Area About IIUG


Resources
IIUG Insider
IIUG Hotspots
IBM-Informix Links
IIUG RSS Feeds
Software Repository
Informix Products
Online Resources
Informix Library
Informix Books
IIUG Banners
Discussion
Technical Special
  Interest Groups

Other Discussion
Community
Events
Webcasts/Chat w Lab
IIUG TV
IIUG Sponsors
Informix Business Directory
IIUG Press Partners
Local User Groups
Rate the Vendor
Job Board
Fun Stuff

[ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

Classics Forum

Re: RE: save aggregate as variable in report

Posted By:
Date:


jay,
what you thought if creating variables in the first place is right.
why not try doing like....
in every if statement you have on your before group, before ending each if's, you say let totall1 = total of (hist_sze * 3.00)
on another if statement you say totall2 = count * 6 and so on....
then on your last row, you add all your variables
see sample below.... hope that will help

JAY ZWAGERMAN <jay2@iafalls.com> wrote:
Let me clarify my question and give my code. Here is the bottom part of my ace report. In the before group of, you see that I use if else statements to find 4 different totals. I can’t do a group total of in the “on last row” and when I do ust a total of in "on last row" It doesn't give me a total of the computed numbers.

format

page header
print column 30, "The Spokesman"
skip 1 line
print column 20, "Web Sales Total",1 space,userbdate," - ",useredate
skip 1 line
print column 25, "Coops: 001 - 017 - 021 - lis"

before group of hist_coopcode
if hist_coopcode = "lis" then
print "Coop Code: ",hist_coopcode,column 15," = ",column 18,
total of (hist_sze * 3.00) using "####.##"

let totall1 = total of (hist_sze * 3.00)
else if hist_coopcode = "021" then
print "Coop Code: ",hist_coopcode,column 15," = ",column 18,
count * 6 using "####.##"

let totall2 = count * 6
print "Coop Code: ",hist_coopcode,column 15," = ",column 18,
count * 3 using "####.##"
else if hist_coopcode = "001" then
print "Coop Code: ",hist_coopcode,column 15," = ",column 18,
count * 3 using "####.##"

let totall3 = count * 3
on last row
print "Total sales:" totall1 + totall2 + totall3 ....

Here is the output so far

Input begin date (using MMDDYY):02012003




The Spokesman

Web Sales Total 02/01/2003 - 02/28/2003

Coops: 001 - 017 - 021 - lis
Coop Code: 001 = 372.00
Coop Code: 017 = 372.00
Coop Code: 021 = 744.00
Coop Code: lis = 247.50
Total sales:





---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Messages In This Thread

  • save aggregate as variable in report
    JAY ZWAGERMAN -- Tuesday, 15 April 2003, at 3:55 p.m.
    • RE: save aggregate as variable in report
      Simmons, Keith -- Tuesday, 15 April 2003, at 3:55 p.m.
    • RE: save aggregate as variable in report
      Jim Noble -- Tuesday, 15 April 2003, at 3:55 p.m.
    • RE: save aggregate as variable in report
      Jim Noble -- Tuesday, 15 April 2003, at 3:55 p.m.
      • Re: RE: save aggregate as variable in report
        JAY ZWAGERMAN -- Tuesday, 15 April 2003, at 3:55 p.m.
        • Re: RE: save aggregate as variable in report
          Marie Ann Mercado -- Tuesday, 15 April 2003, at 3:55 p.m.
        • Re: RE: save aggregate as variable in report
          Marie Ann Mercado -- Tuesday, 15 April 2003, at 3:55 p.m.
          • THANKS
            JAY ZWAGERMAN -- Tuesday, 15 April 2003, at 3:55 p.m.
        • Re: RE: save aggregate as variable in report
          Jonathan Leffler -- Tuesday, 15 April 2003, at 3:55 p.m.
    • RE: save aggregate as variable in report
      Konikoff, Rob (Contractor) -- Tuesday, 15 April 2003, at 3:55 p.m.
    • Re: save aggregate as variable in report
      Jonathan Leffler -- Tuesday, 15 April 2003, at 3:55 p.m.
      • RE: save aggregate as variable in report
        Konikoff, Rob (Contractor) -- Tuesday, 15 April 2003, at 3:55 p.m.

[ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

Classics Forum is maintained by Administrator with WebBBS 5.12.

©2001 - 2007 International Informix Users Group.   All rights reserved.     Terms of use    
*** Powered By IBM Informix Dynamic Server V10.00 ***