• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Edit with Parentheses in Query/400, Take Two

    September 6, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I read your response to the question posted in the August 28 issue of Midrange Guru, and since I don’t work much with negative numbers, I changed data to try your solution. I think I found something, but I don’t know why or how it works..

    I changed the Describe Numeric Field Editing display, as follows: I changed the Replace leading zeroes field with a Y and changed the Replace with field with a 3 (Floating currency symbol). Here’s an example:

    Describe Numeric Field Editing                      
                                                                                 
     Field . . . . . . :   JEAMT                                                 
                                                                                 
     Type choices, press Enter.                                                  
                                                                                 
     Decimal point . . . . . . . .   1      1=.  2=,  3=:  4=$      5=None
     Thousands separator . . . . .   2      1=.  2=,  3='  4=Blank  5=None
     Show negative sign  . . . . .   Y      Y=Yes, N=No
       Left negative sign  . . . .   (
       Right negative sign . . . .   )
     Show currency symbol  . . . .   N      Y=Yes, N=No
       Left currency symbol  . . .   $
       Right currency symbol . . .
     Print zero value  . . . . . .   Y      Y=Yes, N=No
     Replace leading zeros . . . .   Y      Y=Yes, N=No
       Replace with  . . . . . . .   3      1=Blanks
                                            2=Asterisks
                                            3=Floating currency symbol
       Single leading zero . . . .   N      Y=Yes, N=No
                                                                                 
     F3=Exit       F5=Report         F10=Process/previous    F12=Cancel    
     F13=Layout    F16=Remove edit   F18=Files
    

    I expected to see something like (   $1), but I saw (1) for a field that had a negative number. I hope this helps. See if you can test it and break it.

    — Doug

    It works, Doug. I had no idea it would do this. The reason it didn’t print (   $1) was because Show currency symbol is N. If you change it to Y, the currency symbol prints and the left parenthesis still floats.

    Thanks for sharing your discovery with us.

    — 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

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Tags: Tags: mgo_rc, Volume 2, Number 68 -- September 6, 2002

    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
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Share on Reddit (Opens in new window) Reddit
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on X (Opens in new window) X
    • Email a link to a friend (Opens in new window) Email

    Convert J.D. Edwards Dates to Other Formats Reader Feedback and Insights: Security Flaws

    Leave a ReplyCancel reply

MGO Volume: 2 Issue: 68

This Issue Sponsored By

    Table of Contents

    • Reader Feedback and Insights: Copying Records in RPG
    • Convert J.D. Edwards Dates to Other Formats
    • Edit with Parentheses in Query/400, Take Two

    Content archive

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

    Recent Posts

    • Big Blue Ships Bob 2.0 And Premium Package For IBM i
    • Your IBM i Jobs Don’t Live On An Island Anymore
    • FalconStor Creates Cloud Clean Room To Prove Backup Recoveries Work
    • Talking Git On IBM i With A Bunch Of IBM i Gits
    • IBM i PTF Guide, Volume 28, Number 22
    • More Power Systems Price Hikes, This Time They Are “Directional”
    • AI Is Not Just For Developers, It Is For Everyone At Your Company
    • Guru: Finding Data In The Forest – Exploring Three-Part Naming In SQL
    • Former IBMer’s New Book Puts The Midrange In The Spotlight
    • Have You Tried To Buy A Server Lately?

    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