• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • A Bevy of BIFs: %SCAN and %CHECK

    February 25, 2009 Jon Paris

    From recent questions on Internet lists, and from one-on-one discussions with RPG programmers, it seems that many are confused about the usage and operation of a number of built-in functions (BIFs). In particular the BIFs %XLATE, %REPLACE, %SCAN, and %CHECK seem to cause a lot of confusion. In this tip, I focus on %CHECK and %SCAN. I’ll look at the other misunderstood pair, XLATE and REPLACE, in a future tip.

    The %SCAN BIF has been with us since V3R7, when it was introduced along with %EDITC and %EDITW, to improve string handling. %CHECK, on the other hand, is a relative

    …

    Read more
  • Easily Avoid a Common Data Structure Error

    February 25, 2009 Ted Holt

    A shop with which I’m acquainted had an undesirable experience recently. A program that, to my understanding, had been working properly, ended abnormally. The error could have easily been avoided, had the programmer followed one simple rule of thumb.

    Take a look at the following program fragment.

    D MyData          ds                 
    D  OneField                      4a  
    D  TwoField                      7p 0
    D  RedField                      3s 0
    D  BlueField                     5u 0
    D                                    
    D Number          s             15p 5
                                         
     /free                               
         Number = TwoField;              
    

    If the calculation is the first executable statement in the program, what is the new value of Number? The answer is that Number never gets

    …

    Read more
  • Admin Alert: Robot/SCHEDULE’s DST Work-Around and More

    February 25, 2009 Joe Hertvik

    Rather than cover one topic this week, let’s look at three issues that recently crept into my in-box. I’ll explain some additional work you may need to perform to keep Help/Systems’ Robot/SCHEDULE software running fat and happy during Daylight Saving Time changes; go over my updated list of i5/OS system monitoring tools; and expand on what type of post-upgrade backups you should perform after an i5/OS software upgrade.

    Another Daylight Savings Problem To Worry About

    United States Daylight Savings Time (DST) begins this year on March 8, 2009.

    Believe it or not, it’s only been since i5/OS V5R3 that IBM

    …

    Read more

Content archive

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

Recent Posts

  • POWERUp 2025 –Your Source For IBM i 7.6 Information
  • Maxava Consulting Services Does More Than HA/DR Project Management – A Lot More
  • Guru: Creating An SQL Stored Procedure That Returns A Result Set
  • As I See It: At Any Cost
  • IBM i PTF Guide, Volume 27, Number 19
  • IBM Unveils Manzan, A New Open Source Event Monitor For IBM i
  • Say Goodbye To Downtime: Update Your Database Without Taking Your Business Offline
  • i-Rays Brings Observability To IBM i Performance Problems
  • Another Non-TR “Technology Refresh” Happens With IBM i TR6
  • IBM i PTF Guide, Volume 27, Number 18

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