• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Reader Feedback and Insights: Splitting a Qshell Variable

    August 30, 2002 Timothy Prickett Morgan

    Hey, Ted:

    The tech tip for splitting a Qshell variable is certainly one way to do it, but it seems to me a roundabout approach.

    My first thought would be to use the “split” command in awk, but awk does not seem to be a supported language in Qshell.

    Instead, I would use the “cut” command, which is supplied along with Qshell. Something like this example:

    first=$(echo $name | cut -d " " -f 1)
    last=$(echo $name | cut -d " " -f 2)
    

    We have to pipe the variable into the “cut” command because cut normally works on

    …

    Read more
  • Adding Subprocedures to a Service Program

    August 30, 2002 Timothy Prickett Morgan

    Hey, Ted:

    I’m still new to ILE, procedures, and service programs. I thought you could add procedures to the end of a service program, then recreate the service program and use it without recreating any existing program that has it bound in. Is this true, or am I off track?

    — Tim

    You need to learn and use binder language, Tim.

    Here’s an example that I hope will help you get started.

    Once there was an RPG programmer named Dan D. Koder. Dan decided to create a service program for frequently used math routines.

    Here’s the source code:

    H nomain                                     
    
     
    …

    Read more
  • A Fuzzy Search Algorithm

    August 30, 2002 Timothy Prickett Morgan

    Hey, Ted:

    Most inquiry programs require a user to enter the exact value or exact beginning portion of a value to be located. Unfortunately such programs do not find the desired data if the user doesn’t remember the exact spelling of the search term. I have an algorithm that allows searching by any portion of a database field, even if the user misspells the search argument.

    According to this algorithm, the position of each character of the input value is to be compared with the position of the same characters found in the corresponding field from the file. It calculates

    …

    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