• 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

  • The Big Easy: Connecting The Dots On Big Blue’s AI Strategy For IBM i
  • From Migration To Maturity: The Cloud Reality For IBM i Shops
  • COMMON Dances To A Fresh New Tune In New Orleans
  • Eradani Touts Native Git Connection As AI Tools Spread
  • IBM i PTF Guide, Volume 28, Number 17
  • Power Systems Still Waiting For The GenAI Bump
  • The IBM i and the Hybrid Cloud World: Things To Keep In Mind
  • CData Adds Db2 for i Support to CDC Tool
  • As I See It: The Cost of Having Ethics
  • Brace Yourself: Another Power Systems Price Hike Coming May 1

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