Newsletters   Subscriptions  Forums  Store  Media Kit  About Us  Contact  Search   Home 
fhg
Volume 4, Number 19 -- June 2, 2004

Query/400 and Multiple Detail Lines


Hey, Ted:


Help! I need to add more fields to the detail line in Query/400, but the line is already full. Do I have to get another query tool?

--Jack


I'd recommend it. There are some good non-IBM query products on the market that have strong formatting abilities. But you can get through this crisis while you're evaluating them.

Go ahead and select the additional fields on the "select and sequence fields" display. Select the fields in order by line and position. That is, select all of the fields that go on the first line, from left to right. Then select all the fields that go on the second line, again from left to right. Continue until all desired fields have been selected.

Next, select the "select output type and output form" display. Fill in the following options:


Option Value
Output type 2=Printer
Line wrapping Y
Wrapping width Enter the width of the report
Record on one page Y
Form size width Enter the width of the report

Next, go to the "select report column formatting" display. This is where you'll do the bulk of the work. As you work in this area, keep in mind that you can press F13 at any time to see the format of the finished report.

First, set the column spacing for each field in the first line to an appropriate value. Second, enter column headings for the fields on the first row, and set column headings for fields on second and subsequent rows to *NONE. (The value *NONE must be in uppercase.) Third, specify any editing you wish to apply to numeric fields. Fourth, enter any column widths you wish to change for first-line fields. Press F13 frequently to check on your progress. Your goal at this point is to get the first line the way you want it.

Once the first line is formatted appropriately, increase or decrease the column spacing value for the fields of the second line until they are aligned properly. Once the second line is aligned properly, format the third line. Continue until all lines are the way you want them to look. Here's an example of what you might see when you press F13.

In the example, there are three lines for each input record. The resulting report looks like this.

                           Customer Listing

Cmp   Acct     Name/Address                     Limit   Type    Rep
  1     44     Joe's Shoes                       $.01      A    105
               11 Main St
               Duluthe           GA  30096
  1  30003     Snowman Heat & Air            2,500.00      A    101
               999 S. Main St
               Lexington         OH  44904
  2      1     Xolomon Solutions            $7,500.00      A    104
               Box 999
               Tulsa             OK  74146
  2      3     Donaldson Electric           $3,500.00      A    112
               901 S. Rose Dr
               Whittier          CA  90601
  3     56     Jak's Liver Emporium             $1.23           101
               11 Filet Mignon Dr
               Mexico            OH  40404            

Although I've never done it, I have heard of using this technique to generate mailing labels.

--Ted

Sponsored By
WORKSRIGHT SOFTWARE

Do you need area code information?
Do you need ZIP Code information?
Do you need ZIP+4 information?
Do you need city name information?
Do you need county information?
Do you need a nearest dealer locator system?

We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

Just call us and we'll arrange for 30 days FREE use of either
ZIP/CITY or PER/ZIP4.

WorksRight Software, Inc.
Phone: 601-856-8337
Fax: 601-856-9432
E-mail: software@worksright.com
Web site: www.worksright.com


Editors: Howard Arner, Joe Hertvik, Ted Holt,
Shannon O'Donnell, Kevin Vandever
Managing Editor: Shannon Pastore
Contributing Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.


THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
Guild Companies
WorksRight Sofware
Guild Companies
GST


BACK ISSUES

TABLE OF
CONTENTS
Pooling Your DataSources

Don't Let Overrides Deceive You

Query/400 and Multiple Detail Lines

Admin Alert: Checking Your iSeries Batteries

OS/400 Alert: Windows XP Service Pack 2 Beta


The Four Hundred
OS/400 Community Reacts to eServer i5

Java, .NET on iSeries Programmers Minds, RPG in Their Blood

Worldwide Server Market Perked Up in Q1

Four Hundred Stuff
Access OS/400 Servers from Wireless BlackBerry Devices

IBM Introduces Integration Software to the Midmarket

eStorage Offers 70 GB iSeries Disk Drive for $995

Four Hundred Monitor


Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, 50 Park Terrace East, Suite 8F, New York, NY 10034
Privacy Statement