• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Query/400 and Multiple Detail Lines

    June 2, 2004 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

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    ARCAD Software

    Embrace VS Code for IBM i Development

    The IBM i development landscape is evolving with modern tools that enhance efficiency and collaboration. Ready to make the move to VS Code for IBM i?

    Join us for this webinar where we’ll showcase how VS Code can serve as a powerful editor for native IBM i code and explore the essential extensions that make it possible.

    In this session, you’ll discover:

    • How ARCAD’s integration with VS Code provides deep metadata insights, allowing developers to assess the impact of their changes upfront.
    • The role of Git in enabling seamless collaboration between developers using tools like SEU, RDi, and VS Code.
    • Powerful extensions for code quality, security, impact analysis, smart build, and automated RPG conversion to Free Form.
    • How non-IBM i developers can now contribute to IBM i projects without prior knowledge of its specifics, while ensuring full control over their changes.

    The future of IBM i development is here. Let ARCAD be your guide!

    Watch Now

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    ASNA Updates Visual RPG for .NET Development Tool How the eServer i5s Stack Up Against the iSeries

    Leave a Reply Cancel reply

Volume 4, Number 19 -- June 2, 2004
THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
Guild Companies
WorksRight Sofware
Guild Companies
GST

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

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25
  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle