• Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Here’s Some Good Advice!

With V4R5, IBM added several new advisors to the AS/400 Information Center Web site ( Advisors provide a form of interactive help by asking you a series of questions and then either making a recommendation or pointing you to where you can get more information. The following advisors for V4R5 are now available:

• TCP/IP subnet calculator—This advisor helps you calculate new subnets of IP addresses for Class A, Class B, and Class C network addresses. You must know your network address before using this advisor. It can only subnet network addresses into equally sized subnets.

Just enter your network address and select the number of subnets you want. The advisor then calculates values for each subnetwork, including the subnetwork mask and broadcast addresses. This advisor is easy to use and saves you the pain of figuring out the addresses yourself. It’s also easy to go back and try different possibilities to see which one you really want.

• VPN planning—When you provide this advisor with information about your corporate network, it suggests what type of virtual private network (VPN) you should create for your business needs and what parameters are required to configure it. This advisor covers the most basic network configurations, so those with complex or unusual configurations should look for help in the VPN documentation. Otherwise, this advisor is a good starting point for configuring your VPN connection.

After you answer five to eight questions (depending on your configuration) about the local and remote networks, IP addresses, and security, the advisor provides you with a customized worksheet you can use to configure the VPN connection. There are step-by- step instructions to guide you through the configuration process. This advisor takes a complex planning process and cuts through the “fat” to deliver a powerful, timesaving tool.

• Logical partition planning—This advisor will ask you a series of questions and then create the Logical Partition Hardware Planning Worksheet for you. This worksheet will help you find out what hardware resources you need to create logical partitions on your AS/400. Your marketing representative or business partner can then use this information to configure the system you need.

The advisor walks you through the process of deciding what hardware you want in each partition. The process can be long, however, so set aside a few hours. Although it is easy

to go back and forward through this advisor, there is no way to jump around and make changes randomly. Look for an update to this advisor later this year that will be easier to use and more compatible with the Configuration Planning Worksheet currently available on IBM’s Logical Partitioning Web site ( This advisor is meant to help you complete the first section of the Configuration Planning Worksheet. It will prove to be very useful to those who want to get a rough idea of the hardware resource requirements needed for a business. It is not useful, at least at this point, for validating the hardware and the configuration. That job still belongs to your business partner or marketing representative, IBM Technology Solutions Center, and the Configurator tool.

• Logical partition troubleshooting—This advisor points you to information about error messages and system reference codes (SRCs) that relate to logical partitions. Although this advisor supports only messages and SRCs directly related to problems caused by the logical partitioning code or requirements, you can narrow down your problem by going here first. (If it is not found, the problem is probably not related to your logical partitions.)

You can access these advisors from the main navigation frame of the Information Center under the Advisors heading. You will also find links to each advisor in the main section of the Information Center. See my article “Getting to Know the New LPAR Worksheet” on page 47 for more information about the advisors and worksheets.

—Garrett Winn This email address is being protected from spambots. You need JavaScript enabled to view it.

User Spaces Made Easy

As of V4R4, the Edit File Utility (EDTF) in V4R4 can edit user spaces, in addition to source members and AS/400 Integrated File System (AS/400 IFS files). Just specify a path name to a user space as follows:

EDTF STMF(‘/qsys.lib/mylib.lib/myspace.

If the user space doesn’t exist, EDTF will first create it and then let you edit it.

—Gene Gaunt Gene_Gaunt/This email address is being protected from spambots. You need JavaScript enabled to view it.

Data Loader Commands Enhanced

V4R4 PTFs have recently been made available that enhance the functionality of the DB2

UDB for AS/400 Copy from Import File (CPYFRMIMPF) and Copy to Import File (CPYTOIMPF) commands. One of the enhancements is a new Remove blank (RMVBLANK) parameter for CPYFRMIMPF. The values available for the RMVBLANK parameter are *LEADING and *NONE. If *LEADING is specified, DB2 UDB strips leading blanks from a character string before placing the resulting string in the specified target character column. With *NONE, all leading blanks are included in the result string that is copied into the specified target character column.

Another enhancement is a new Allow null values (ALWNULLVAL) parameter for CPYFRMIMPF. The values available for ALWNULLVAL are *NO and *FLDDFT. When *FLDDFT is specified, DB2 UDB assigns the default value to the target column if the data being imported (e.g., blanks in a numeric field) would cause DB2 UDB to try to place a null value in a target column that doesn’t allow nulls.

There is also a new Stream file code page (STMFCODPAG) parameter for CPYTOIMPF, which allows you to specify the code page of the target stream file. In the

past, you would have used another tool or command to first create the stream file with the desired code page to override the default behavior of the command.

Finally, there is a new behavior for the CPYTOIMPF MBROPT(*REPLACE) option. Now, when MBROPT(*REPLACE) is specified, DB2 UDB clears the target stream file if CPYTOIMPF is given an empty database table to copy.

The PTF numbers for V4R4 are SF61859 and SF61937.

—Kent Milligan PartnerWorld for Developers, AS/400 This email address is being protected from spambots. You need JavaScript enabled to view it.

Automated Object Recompiling

Everyone has had to change a physical file in some way, shape, or form. (Y2K was a perfect example.) After changes are made to the physical file, the next step is to compile any logical files built over the physical file and any programs that use that physical file. Locating these programs is an easy enough procedure: Provided that all the programs are contained in one library, a simple scan of the source code using PDM accomplishes this. However, when you’ve used the physical file or the logical files attached to it in programs in other libraries throughout your system, locating these programs isn’t so easy.

One solution is to have a utility locate and list usages across all the libraries in your system. The Display Program References (DSPPGMREF) command makes this possible by creating an outfile that you can use to print a report of the information you need. A past submission by Eugene Arencibia (“TechTalk: What Programs Use a File?” MC, June
1992) addresses this problem, but it prints a report for only one file and only one library at a time. To overcome this limitation, I use a physical file to store the names of all application libraries (with program load members) on the system. All the library names are then processed using this physical file. There is also a “wild card” character (‘.’) for the last five to eight characters of the file name and an automated compilation routine for programs found. This wild card feature enables a run of the program to list associated physical and logical files together, provided that your naming conventions are set up accordingly. You can easily change this wild card feature if your files are named differently.

Using this system gives you an accurate picture of file usage by program in each library, thus giving you an up-to-date picture of all program references (CL and RPG) to a selected file. I’ve also included on the report the date of last use, so you can readily determine whether or not the program is being used. The List File Programs (LSTFPGM) command and its associated programs—F000CL, F001CL (Figure 1), F002CL (Figure 2, page 114), and F001RG—give you a solution to this problem with a concise listing of necessary information.

To use this utility, you must first create the physical file LIBRNAME before running the programs. Use your favorite file editor to enter the names of all the libraries on your system that contain compiled program objects. This is important because, if you try to process a library with no program object members, the program will halt and you will get a CPF2123 error. Once you have built the list of programs using the file(s) in question, you generally have to compile those programs to avoid level-check errors the next time you run them. (As long as I have the necessary information for compiling all the affected programs, I write a process to automate the compilations.)

Enter on a command line the command I created named COMPILE; it prompts you to enter the parameter value of either CL or RPG. As the program runs, you’ll see a display screen informing you that you are compiling programs using the xxxxxxxxxx file, where xxxxxxxxxx is the name of the changed files. You are allowed to change the source and/or object libraries in case you do not keep your compiled objects in the same library as your source members. Pressing F1 allows you to bypass compilation of a program. Pressing F3

ends the job as usual, but, in case you have to stop somewhere in the middle of the list, you can, when you resume compiling, pick up where you left off.

Each program name record is coded with an X in the PGSTAT field after a successful compilation. This code is checked and bypassed if it is not blank in the F0002RG program. If a fatal compilation error occurs, you will get a message on your screen informing you of the unsuccessful compilation. Note the name of the program for later correction, press F1 to bypass the program, and continue with the next compilation. When you get ready to use this utility, first run the LSTFPGM command and then run the COMPILE command to recompile all the programs and logical files used by the file you specified in LSTFPGM. All the source for this tip can be downloaded from the MC Web site at

I put all the objects in the QGPL library so I can call LSTFPGM and COMPILE from any library whenever the need arises. One final note: As written, this utility supports only Original Program Model (OPM) programs, but you can easily modify it to support RPG IV and CLLE programs as well.

—Roger Stein This email address is being protected from spambots. You need JavaScript enabled to view it.

Improving on CRTDUPOBJ

Create Duplicate Object (CRTDUPOBJ) is a powerful tool, but it has three handicaps:

• It does not support the library list.

• It does not support qualified object names.

• It fails if the new object already exists.

I created the CPYOBJ (Copy Object) utility to address these limitations. CPYOBJ consists of two objects: a CL program, CPYOBJC, and a command definition, which has the following four parameters:

• OBJ identifies the object or objects being copied. You can enter a specific or generic object name, and the library portion can be either *LIBL or a given library name.

• OBJTYPE identifies the type of object being copied. You can enter *ALL if the copy request employs a generic name.

• NEWOBJ gives a name to the new object being created. The name defaults to *SAME, giving the new object the name of the original object. The library qualifier also defaults to *SAME for those cases in which you want to copy an object within a single library.

• REPLACE tells CPYOBJ what to do if an object to be created already exists in the target library. With *NO (the default value), CPYOBJ fails if the target object already exists. With *YES, CPYOBJ deletes the target object before attempting the copy process.

You should know a few things about the CPYOBJ utility. First, because it executes CRTDUPOBJ internally, CPYOBJ shares that command’s limitations. Second, if you use REPLACE(*YES) when copying a physical file, CPYOBJ will fail to delete the existing target file if the file has any logical files attached. Third, CPYOBJ does not copy the data in database files. Last, CPYOBJ uses the Forward Program Messages (FWDPGMMSG) utility command, which I wrote and published in “How to Forward Messages in CL” (MC, January 1998). You can download the source code for the CPYOBJ utility from the MC Web site at

—Ernie Malaga Computer Solutions, Inc. This email address is being protected from spambots. You need JavaScript enabled to view it.


/* To Compile: */
/* */

/* SRCMBR(F001CL) */
/* */

/* */







































RETURN /***************************************************************/

/* To Compile: */
/* */

/* SRCMBR(F002CL) */
/* */

/* */





Figure 1: CL program F001CL submits a list of program names to be compiled.
















Figure 2: CL program F002CL builds a list of source members to be compiled.



Support MC Press Online





  • White Paper: Node.js for Enterprise IBM i Modernization

    SB Profound WP 5539

    If your business is thinking about modernizing your legacy IBM i (also known as AS/400 or iSeries) applications, you will want to read this white paper first!

    Download this paper and learn how Node.js can ensure that you:
    - Modernize on-time and budget - no more lengthy, costly, disruptive app rewrites!
    - Retain your IBM i systems of record
    - Find and hire new development talent
    - Integrate new Node.js applications with your existing RPG, Java, .Net, and PHP apps
    - Extend your IBM i capabilties to include Watson API, Cloud, and Internet of Things

    Read Node.js for Enterprise IBM i Modernization Now!


  • Profound Logic Solution Guide

    SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation.
    Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects.
    The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the companyare not aligned with the current IT environment.

    Get your copy of this important guide today!


  • 2022 IBM i Marketplace Survey Results

    Fortra2022 marks the eighth edition of the IBM i Marketplace Survey Results. Each year, Fortra captures data on how businesses use the IBM i platform and the IT and cybersecurity initiatives it supports.

    Over the years, this survey has become a true industry benchmark, revealing to readers the trends that are shaping and driving the market and providing insight into what the future may bring for this technology.

  • Brunswick bowls a perfect 300 with LANSA!

    FortraBrunswick is the leader in bowling products, services, and industry expertise for the development and renovation of new and existing bowling centers and mixed-use recreation facilities across the entertainment industry. However, the lifeblood of Brunswick’s capital equipment business was running on a 15-year-old software application written in Visual Basic 6 (VB6) with a SQL Server back-end. The application was at the end of its life and needed to be replaced.
    With the help of Visual LANSA, they found an easy-to-use, long-term platform that enabled their team to collaborate, innovate, and integrate with existing systems and databases within a single platform.
    Read the case study to learn how they achieved success and increased the speed of development by 30% with Visual LANSA.


  • Progressive Web Apps: Create a Universal Experience Across All Devices

    LANSAProgressive Web Apps allow you to reach anyone, anywhere, and on any device with a single unified codebase. This means that your applications—regardless of browser, device, or platform—instantly become more reliable and consistent. They are the present and future of application development, and more and more businesses are catching on.
    Download this whitepaper and learn:

    • How PWAs support fast application development and streamline DevOps
    • How to give your business a competitive edge using PWAs
    • What makes progressive web apps so versatile, both online and offline



  • The Power of Coding in a Low-Code Solution

    LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed.
    Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

    • Discover the benefits of Low-code's quick application creation
    • Understand the differences in model-based and language-based Low-Code platforms
    • Explore the strengths of LANSA's Low-Code Solution to Low-Code’s biggest drawbacks



  • Why Migrate When You Can Modernize?

    LANSABusiness users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.
    In this white paper, you’ll learn how to think of these issues as opportunities rather than problems. We’ll explore motivations to migrate or modernize, their risks and considerations you should be aware of before embarking on a (migration or modernization) project.
    Lastly, we’ll discuss how modernizing IBM i applications with optimized business workflows, integration with other technologies and new mobile and web user interfaces will enable IT – and the business – to experience time-added value and much more.


  • UPDATED: Developer Kit: Making a Business Case for Modernization and Beyond

    Profound Logic Software, Inc.Having trouble getting management approval for modernization projects? The problem may be you're not speaking enough "business" to them.

    This Developer Kit provides you study-backed data and a ready-to-use business case template to help get your very next development project approved!

  • What to Do When Your AS/400 Talent Retires

    FortraIT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators is small.

    This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn:

    • Why IBM i skills depletion is a top concern
    • How leading organizations are coping
    • Where automation will make the biggest impact


  • Node.js on IBM i Webinar Series Pt. 2: Setting Up Your Development Tools

    Profound Logic Software, Inc.Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. In Part 2, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Attend this webinar to learn:

    • Different tools to develop Node.js applications on IBM i
    • Debugging Node.js
    • The basics of Git and tools to help those new to it
    • Using as a pre-built development environment



  • Expert Tips for IBM i Security: Beyond the Basics

    SB PowerTech WC GenericIn this session, IBM i security expert Robin Tatam provides a quick recap of IBM i security basics and guides you through some advanced cybersecurity techniques that can help you take data protection to the next level. Robin will cover:

    • Reducing the risk posed by special authorities
    • Establishing object-level security
    • Overseeing user actions and data access

    Don't miss this chance to take your knowledge of IBM i security beyond the basics.



  • 5 IBM i Security Quick Wins

    SB PowerTech WC GenericIn today’s threat landscape, upper management is laser-focused on cybersecurity. You need to make progress in securing your systems—and make it fast.
    There’s no shortage of actions you could take, but what tactics will actually deliver the results you need? And how can you find a security strategy that fits your budget and time constraints?
    Join top IBM i security expert Robin Tatam as he outlines the five fastest and most impactful changes you can make to strengthen IBM i security this year.
    Your system didn’t become unsecure overnight and you won’t be able to turn it around overnight either. But quick wins are possible with IBM i security, and Robin Tatam will show you how to achieve them.

  • Security Bulletin: Malware Infection Discovered on IBM i Server!

    SB PowerTech WC GenericMalicious programs can bring entire businesses to their knees—and IBM i shops are not immune. It’s critical to grasp the true impact malware can have on IBM i and the network that connects to it. Attend this webinar to gain a thorough understanding of the relationships between:

    • Viruses, native objects, and the integrated file system (IFS)
    • Power Systems and Windows-based viruses and malware
    • PC-based anti-virus scanning versus native IBM i scanning

    There are a number of ways you can minimize your exposure to viruses. IBM i security expert Sandi Moore explains the facts, including how to ensure you're fully protected and compliant with regulations such as PCI.



  • Encryption on IBM i Simplified

    SB PowerTech WC GenericDB2 Field Procedures (FieldProcs) were introduced in IBM i 7.1 and have greatly simplified encryption, often without requiring any application changes. Now you can quickly encrypt sensitive data on the IBM i including PII, PCI, PHI data in your physical files and tables.
    Watch this webinar to learn how you can quickly implement encryption on the IBM i. During the webinar, security expert Robin Tatam will show you how to:

    • Use Field Procedures to automate encryption and decryption
    • Restrict and mask field level access by user or group
    • Meet compliance requirements with effective key management and audit trails


  • Lessons Learned from IBM i Cyber Attacks

    SB PowerTech WC GenericDespite the many options IBM has provided to protect your systems and data, many organizations still struggle to apply appropriate security controls.
    In this webinar, you'll get insight into how the criminals accessed these systems, the fallout from these attacks, and how the incidents could have been avoided by following security best practices.

    • Learn which security gaps cyber criminals love most
    • Find out how other IBM i organizations have fallen victim
    • Get the details on policies and processes you can implement to protect your organization, even when staff works from home

    You will learn the steps you can take to avoid the mistakes made in these examples, as well as other inadequate and misconfigured settings that put businesses at risk.



  • The Power of Coding in a Low-Code Solution

    SB PowerTech WC GenericWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed.
    Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

    • Discover the benefits of Low-code's quick application creation
    • Understand the differences in model-based and language-based Low-Code platforms
    • Explore the strengths of LANSA's Low-Code Solution to Low-Code’s biggest drawbacks



  • Node Webinar Series Pt. 1: The World of Node.js on IBM i

    SB Profound WC GenericHave you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.
    Part 1 will teach you what Node.js is, why it's a great option for IBM i shops, and how to take advantage of the ecosystem surrounding Node.
    In addition to background information, our Director of Product Development Scott Klement will demonstrate applications that take advantage of the Node Package Manager (npm).
    Watch Now.

  • The Biggest Mistakes in IBM i Security

    SB Profound WC Generic The Biggest Mistakes in IBM i Security
    Here’s the harsh reality: cybersecurity pros have to get their jobs right every single day, while an attacker only has to succeed once to do incredible damage.
    Whether that’s thousands of exposed records, millions of dollars in fines and legal fees, or diminished share value, it’s easy to judge organizations that fall victim. IBM i enjoys an enviable reputation for security, but no system is impervious to mistakes.
    Join this webinar to learn about the biggest errors made when securing a Power Systems server.
    This knowledge is critical for ensuring integrity of your application data and preventing you from becoming the next Equifax. It’s also essential for complying with all formal regulations, including SOX, PCI, GDPR, and HIPAA
    Watch Now.

  • Comply in 5! Well, actually UNDER 5 minutes!!

    SB CYBRA PPL 5382

    TRY the one package that solves all your document design and printing challenges on all your platforms.

    Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product.

    Request your trial now!

  • Backup and Recovery on IBM i: Your Strategy for the Unexpected

    FortraRobot automates the routine tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:
    - Simplified backup procedures
    - Easy data encryption
    - Save media management
    - Guided restoration
    - Seamless product integration
    Make sure your data survives when catastrophe hits. Try the Robot Backup and Recovery Solution FREE for 30 days.

  • Manage IBM i Messages by Exception with Robot

    SB HelpSystems SC 5413Managing messages on your IBM i can be more than a full-time job if you have to do it manually. How can you be sure you won’t miss important system events?
    Automate your message center with the Robot Message Management Solution. Key features include:
    - Automated message management
    - Tailored notifications and automatic escalation
    - System-wide control of your IBM i partitions
    - Two-way system notifications from your mobile device
    - Seamless product integration
    Try the Robot Message Management Solution FREE for 30 days.

  • Easiest Way to Save Money? Stop Printing IBM i Reports

    FortraRobot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing.
    Manage your reports with the Robot Report Management Solution. Key features include:

    - Automated report distribution
    - View online without delay
    - Browser interface to make notes
    - Custom retention capabilities
    - Seamless product integration
    Rerun another report? Never again. Try the Robot Report Management Solution FREE for 30 days.

  • Hassle-Free IBM i Operations around the Clock

    SB HelpSystems SC 5413For over 30 years, Robot has been a leader in systems management for IBM i.
    Manage your job schedule with the Robot Job Scheduling Solution. Key features include:
    - Automated batch, interactive, and cross-platform scheduling
    - Event-driven dependency processing
    - Centralized monitoring and reporting
    - Audit log and ready-to-use reports
    - Seamless product integration
    Scale your software, not your staff. Try the Robot Job Scheduling Solution FREE for 30 days.