• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Timestamps and V5R1 RPG

    August 28, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I enjoy reading the tech tips in Midrange Guru, especially how to break up a string in Qshell . (You figured that out on a cocktail napkin at a bar, right?)

    Craig Rutledge’s recent tip on comparing timestamps in RPG free is a bit too “robust.” To create a timestamp, just do this:

    legacy_stamp = %date(legacy_date:*MDY) + %time(legacy_time:*hms);
    
    defined_stamp = defined_date + defined_time;
    

    — Chris

    I can’t take credit for the Qshell tip to split up a parameter. As with so many other RPG, CL, OCL, and VB tricks of the trade, I learned that tip from

    …

    Read more
  • A CPYF Idiosyncrasy Revisited

    August 28, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I just noticed the article regarding the CPYF idiosyncrasy in January 23 issue of Midrange Guru, OS/400 Edition . The writer wanted to copy records with a user profile field that was equal to CEM.

    I had the same problem. To solve it, I defined two variables. The first contained the exact value for which I was looking. I used the Change Variable (CHGVAR) command to set the second variable to the value of the first variable with a ‘!’ character added to the end of text. I used the Copy File (CPYF) command with the Include

    …

    Read more
  • Edit with Parentheses in Query/400

    August 28, 2002 Timothy Prickett Morgan

    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

    …

    Read more

Content archive

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

Recent Posts

  • 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
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

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