• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Client Access Hotspots

    October 11, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I want to display a calendar if a user clicks on a date on the first line of a display. The date field is a ten-character output field in mm/dd/yyyy format.

    If I click on the year or a forward slash (/), the program works correctly. However, if I double-click on the month or date portion, the program goes crazy. Double-clicking on a date of 03, for example, shuts down the program. Double-clicking on a month of 10 locks the keyboard.

    Any ideas you have that will help solve my problem will be greatly appreciated.

    — Bill

    I

    …

    Read more
  • Reader Feedback and Insights: QTEMP and the Library List

    October 9, 2002 Timothy Prickett Morgan

    Hey, Ted:

    In the June 5 issue of Midrange Guru, a reader ended an explanation of a technique for specifying QTEMP in library lists with this statement: “. . . I suggest that QTEMP should ALWAYS be placed at the bottom of the library list and that references to files in QTEMP should ALWAYS be hard coded.”

    There seems a chance of contradictory behavior with that. If references to QTEMP are always hard coded, then perhaps QTEMP should not be in the library list.

    And if QTEMP must be in the list in order to catch possible *LIBL references,

    …

    Read more
  • FTP and Save Files, Yet Again!

    October 9, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I have a further refinement to Sami’s tip [ “FTP and Save Files”, Midrange Guru, OS/400 Edition, October 2 ].

     

    You get much better compression if you compress on the PC, using PKZIP.  I tried a small library:

     393K - No compression
     242K - DTACPR(*YES)
     116K - DTACPR(*NO), PKZIP'ed
     117K - DTACPR(*YES), PKZIP'ed
    

    Of course, this assumes that the recipient can unzip the file, but nearly everyone has PKZIP or WinZip or some variant.

    It’s interesting to note that you usually get the best compression by saving with DTACPR(*NO) and letting PKZIP do its thing on the

    …

    Read more
  • Using APIs to Send Impromptu Messages

    October 9, 2002 Ted Holt

    Hey, Ted:

    I would like to use the error message APIs QMHRMVPM and QMHSNDPM in an RPG IV program to send messages to an error-message subfile.

    I do not want to have to define the messages in a message file. I would prefer to use constant definitions from within my RPG program. Is this possible?

    I’ve searched written manuals and have not yet found a way to do this.

    — Russell

    Any message that is not sent as an *ESCAPE, *STATUS, or *NOTIFY message can be sent as an impromptu message, Russell. Here’s a short program you can play with. …

    Read more
  • Reader Feedback and Insights: A Timely OPNQRYF Tip

    October 4, 2002 Timothy Prickett Morgan

    Hey, Ted:

    Your tip regarding OPNQRYF is real beauty . You won’t believe this, but I had to solve a similar problem on the same day that your tip arrived.

    Thanks,

    — Shafiq































    Sponsored By
    RJS SOFTWARE SYSTEMS

    Implement Document Imaging on your iSeries-AS/400 in 30 minutes or less

    Image Server/400 is a Web browser-based document image management system for the iSeries.

    Documents can be quickly scanned and stored in IFS folders, and then located and retrieved for viewing via any Web browser. Integrate with other iSeries-AS/400 applications.

    Visit us at COMMON, Booth 418, call us at 888-RJS-SOFT, or download

    …

    Read more
  • Find the Cursor Position in a CL Program

    October 4, 2002 Timothy Prickett Morgan

    Dear Readers:

    In the September 27 issue of Midrange Guru, my friend Holley Davis shared one method for returning the cursor location to a CL program. In this issue he shares a second method.

     

    — Howard

    There are two ways to tell where the cursor is located in a CL program. Both of them require you to add the RTNCSRLOC keyword to your display file as shown in the example below.

    The RTNCSRLOC has two formats. You can use either one or both as needed. One format uses three variables to relay information from the display file to

    …

    Read more
  • David’s Choice for Java Error Logging

    October 4, 2002 Timothy Prickett Morgan

    Hey, David:

    Thanks for all the tips you have given us. You have saved us countless hours of frustration. In return, here is a tip for you.

    Where I work, we were trying to decide how to log errors and other diagnostic messages from our Java applications.

    With all the choices (i.e., LogKit, Log4J, JDK14), we were not sure what was best.

    We knew we needed something, but did not want to lock ourselves into a logging framework that would not meet our needs.

    That was when we found that the Jakarta-Apache project (http://jakarta.apache.org) had a project that

    …

    Read more
  • Reader Feedback and Insights: Displaying Menu Options

    October 2, 2002 Timothy Prickett Morgan

    Hey, Ted:

    In the September 18 issue of Midrange Guru, OS/400 Edition, “Odds and Ends” column, you discuss in your answer to the last question, which discusses using DSPMSGD with RANGE(*ALL). Yes, this works OK, but I don’t like to see them one at a time. DETAIL(*BASIC) displays up to ten menu option commands in a subfile list that you can see on the page at once and then roll to see more.

    Keep up the good work.

    –John































    Sponsored By
    WORTH CONSULTING

    Improve Legacy Programs with Super/Windows

    Summary:

    This newly released tool for the iSeries is

    …

    Read more
  • FTP and Save Files

    October 2, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I have something to add to your September 25  Midrange Guru article, “FTP’ing a Library .” When you save anything to a save file, it is recommended to compress the saved objects by specifying DTACPR(*YES). The default for save file is DTACPR(*NO), so changing this parameter reduces the resulting save file’s size about 50 percent.

     

    — Sami

    Thank you, Sami, for bringing that to my attention. I did leave out an important piece of information.

    — Ted

















    Sponsored By
    WORTH CONSULTING

    Improve Legacy Programs with Super/Windows

    Summary:

    This newly released tool for the iSeries is used to

    …

    Read more
  • When Good Batch FTP Users Go Bad

    October 2, 2002 Timothy Prickett Morgan

    Hey, Joe:

    I set up a Windows batch FTP script to automatically transfer files from my iSeries box to a Windows desktop. I set up this transfer to occur every Friday evening. This week, the batch transfer stopped working because the remote OS/400 FTP server rejected the FTP user profile and password in the script. The strange thing is that the OS/400 FTP user profile is still enabled on the server. Any ideas what’s happening here?

    — Al

    To get an idea of what’s going on, let’s examine the following sample Windows batch FTP script from a recent article on

    …

    Read more

Previous Articles Next Articles

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