• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Circumventing Two Limitations of CPYTOIMPF

    July 22, 2009 Ted Holt

    Dear Intelligent Power-on-i Professional:

    I deem it grand of IBM to give us great tools that relieve us of the need to write programs to accomplish mundane, quotidian tasks. The Copy to Import File (CPYTOIMPF) command is such an animal. However, nothing’s perfect on this planet, and CPYTOIMPF is no exception. Here are two annoyances or problems (depending on your point of view), and how to get around them.

    Strip Out Unwanted Blanks

    I’m using CPYTOIMPF to build a CSV file. CPYTOIMPF leaves lots of blank space in the stream file. Is there any way to tell CPYTOIMPF that I

    …

    Read more
  • Comparing RPG and SQL Functionality

    July 22, 2009 Hey, Mike

    Is there a book on how RPG operation codes and built-in functions translate to SQL? I’m trying to leverage my RPG coding skills to write logic in a DB2 stored procedure. That is, I know exactly what to do in RPG, but I don’t know the SQL equivalent.

    To determine the length of a city name, I would use RPG code like this:

    Eval CityLength = %Len(%Trim(City))
    

    How would I do the same in a stored procedure SET statement? I have used the following to find a field length, but my field is an input parameter to the stored procedure.

    …

    Read more
  • Admin Alert: Treating IFS Objects Like Stream File Objects

    July 22, 2009 Joe Hertvik

    Even though AS/400 Integrated File System (AS/400 IFS) folders can contain the same type of stream file data as network file servers do, many administrators still don’t understand how to perform basic file functions such as checking out and checking in files, and changing properties for an AS/400 IFS Root (/) file object. This week, let’s review some basic but important functions you can perform on IFS stream file objects.

    Changing IFS File Properties

    The quickest way to change the attributes of IFS PC and Unix stream files is to use the Properties function IBM offers in iSeries Navigator (OpsNav).

    …

    Read more

Content archive

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

Recent Posts

  • Power Systems Turns In Another Great Quarter
  • Big Blue Is Right On Schedule With Fall 2026 IBM i Tech Refreshes
  • Guru: Environment Variables – Global Variables Wearing Hiking Boots
  • A New IBM i Entity Takes Shape: Power By Fortra
  • IBM i PTF Guide, Volume 28, Number 38
  • Critical PHP2Shell Security Vulns Evoke ‘Black October’
  • Why Fortra Partnered with FalconStor to Launch Continuity Care: A Validated Recovery Service for IBM i
  • Guru: Analyzing User Session Statistics, Part 2
  • Fresche Launches OpsIQ, a Free AI-Based Operation Assistant for IBM i
  • IBM i PTF Guide, Volume 28, Number 37

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