mgo
OS/400 Edition
Volume 2, Number 65 -- August 28, 2002

Edit with Parentheses in Query/400


Hey, Ted:

Is there a way to make Query/400 place parentheses or angle brackets around negative numbers?


-- Chuck

Yes, but I'm not crazy about it.

From the Define the Query panel, select Specify report column formatting. This will show you a list of fields that have been selected for output. Place the cursor on the field that you want to edit and press F16 to specify editing. In the Edit option prompt, choose 1 (Numeric editing choices). Change Show negative sign to Y if necessary. Key an open parenthesis (or left angle bracket) into the Left negative sign field and a close parenthesis (or right angle bracket) into the Right negative sign field.

Here's the part of this method that I don't like: The left negative sign does not abut the first digit of a zero-suppressed number, as the following example shows:

Account  Date               Amount
   100   2002-01-01          45.00 
   700   2002-01-01  (       25.00)
   780   2002-02-01  (       20.00)

-- Ted


Sponsored By
COMMON

REGISTER FOR COMMON IN DENVER, OCT. 13-17

Get the IT training you need by attending COMMON Users Group's Fall 2002 IT Education Conference & Expo, October 13-17 in Denver. Early Bird registration is $1,150 until September 4.

Choose from over 720 sessions and labs covering a wide range of industry topics. Also receive training from J.D. Edwards, MAPICS, and other vendors.

Don't miss out! Go to www.common.org


THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
COMMON


BACK ISSUES

TABLE OF CONTENTS

A CPYF Idiosyncrasy Revisited

Edit with Parentheses in Query/400

Reader Feedback and Insights: Timestamps and V5R1 RPG


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris

Managing Editor
Mari Barrett

Publisher and
Advertising Director

Jenny Thomas

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com



Last Updated: 8/28/02
Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.