- Home
- Products
- Solutions
- System i Data Analysis
- Creating Queries
- Writing Reports
- Business Intelligence Tool
- Summarize Your Data
- Access Data Using a Browser
- Program, File, and Field Cross-Referencing
- Convert and Distribute Spooled Files
- Enterprise Data Analysis
- Customer Success Stories
- Blumenthal Print Works, Inc.
- Civil Service Employees Insurance Group
- Foodservice Resources and Solutions (FRS)
- Fremont Insurance Company
- Lansing School District
- Leonard's Express
- Monrovia
- National Farmers Insurance
- Robbins Sports Surfaces
- Security Mutual Life Insurance Company
- Southwestern Motor Transport
- Stewart & Stevenson
- Texollini
- The Hammock Source
- Tony’s Fine Foods
- Support
- Downloads
- Training
- International
- Africa, Middle East & India
- Angola
- Bangladesh
- Botswana
- Burundi
- Bahrain
- Cape Verde
- DRC
- Egypt
- Eritrea
- Ethiopia
- Ghana
- India
- Iran
- Israel
- Jordan
- Kazakhstan
- Kenya
- Kuwait
- Kyrgyzstan
- Lebanon
- Liberia
- Malawai
- Mozambique
- Nigeria
- Oman
- Pakistan
- Qatar
- Rwanda
- Sao Tome & Principe
- Saudi Arabia
- Sierra Leone
- South Africa
- Sudan
- Syria
- Tanzania
- Uganda
- United Arab Emirates
- Uzbekistan
- Yemen
- Zambia
- Zimbabwe
- Asia Pacific
- Europe
- Albania
- Austria
- Azerbaijan
- Belarus
- Belgium
- Bosnia & Herzegovina
- Bulgaria
- Croatia
- Czech Republic
- Denmark
- Finland
- France
- Cyprus
- Germany
- Greece
- Hungary
- Iceland
- Ireland
- Italy
- Norway
- Luxembourg
- Macedonia
- Malta
- Netherlands
- Poland
- Portugal
- Romania
- Russia
- Serbia & Montenegro
- Slovakia
- Slovenia
- Spain
- Sweden
- Switzerland
- Turkey
- Ukraine
- United Kingdom
- Latin America & the Caribbean
- The United States & Canada
- Africa, Middle East & India
- About Us
- Connect
Home › Newsletter › April 2011
April 2011
Tech Info

How To Suppress Repeating Detail Data In A Host Report
In report formatting, it’s common to need to suppress repeating detail— to print a value only if it changes. In many reports, you’ll see data repeat because of the many database files used by the underlying view. In the Host Report examples that follow, a customer has many orders. When the report prints, the customer number repeats for each order, which clutters the report. Let’s see just how easy it is to suppress the detail and clean up the report.
Before…
Here’s how the report looks before we suppress the customer number:
.jpg)
Now, here’s the same report with one customer number per group:
.jpg)
What’s The Trick?
The solution isn’t tricky, but we should review some background information first. This report uses the following view:
SELECT cusno, ordno, line#, quano
FROM sequelex/ordline, sequelex/ordhead
JOIN ordno.1=ordno.2
ORDER BY cusno, ordno, line#
The view is important to the solution because of the relationship between the fields in the ORDER BY clause and the formats (or level breaks) created in the Report Designer (and in the final report). You notice that when you create a report, each field in the ORDER BY clause generates a level break in the report. We can use these level breaks to control when a field value prints.
In the example view, the Report Writer evaluates the ORDER BY clause in reverse order and assigns a break level of 1 to line#, 2 to ordno, and 3 to cusno. (Note: You can see these assignments if you open the Report Writer Calculation Editor. They display there because you also can use them in calculated report fields.)
From the Design menu, select Insert\Expression. In the Break Level drop-down list, the ORDER BY fields are shown (in reverse order) with their break level numbers.

The Report Designer
To suppress the customer number (cusno) so that it only prints when the customer number changes, you must change the field’s properties and set the break level to the cusno break (3).
In the Report Designer, right-click the cusno field and select Properties from the drop-down menu.
.jpg)
In the Report Field Properties window, use the Break Level drop-down menu to select the CUSNO break.
.jpg)
Select the Print on Overflow option so that if the detail for a customer overflows the current page, the field prints on the first line of the next page.
.jpg)
Click OK to apply the change.
That’s all there is to it. Now, the report suppresses the repeating customer number as shown previously in the After... example. Try using this technique in your detail reports to clean them up and make them easier to use.
More Information
You can do much more with ViewPoint Host reports than we covered here. See the SEQUEL ViewPoint User Guide or the online help for more information about the ViewPoint Report Writer.
By Steven Smith, Technical Consultant
Need Help?Talk to UsIn the U.S. and Canada, call 1-800-328-1000 and ask for Sales. Elsewhere in the world, contact your local international office. |
SEQUEL Connections
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009



