• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Admin Alert: An Alternate Way to Port Image Catalogs Between Systems: QFileSrv.400

    August 10, 2011 Joe Hertvik

    In a recent article, I presented a technique for porting image catalog files between Power i systems. Afterward, a reader contacted me with an equally valid ways of moving image catalogs around that may even work better than my technique. This week, I’ll look at his suggestion and see how it can make life easier when porting optical media to remote systems.

    My Solution

    My original solution to porting an image catalog and its associated files from a source to a target machine consisted of the following steps:

    1. Create a virtual optical device that can be used to read image files from an image catalog on both the source and the target i OS partitions.
    2. Create an image catalog complete with image file entries for your CD/DVD on the source machine.
    3. Create save files on your source and target system for transferring the source system image catalog and accompanying CD or DVD image files to the target system.
    4. On your source system, use a CL program that I wrote to save your image catalog and accompanying files for transfer to the target system.
    5. On the target system, use FTP commands or an FTP script to move your image catalog save files from the source to the target system. See this article for a sample FTP script that transfers save files between systems.
    6. On the target system, use another CL program that I wrote to restore the saved image catalog and image file entries.

    For this solution, you have to maintain system backup code on your source system and an FTP script and image catalog reload source code on your target system to make this work.

    For more details on performing these steps, check out this article.

    IMHO, this is a fairly good solution that’s easy to run and automate. However, it turns out that this isn’t necessarily the most efficient way to transfer image catalogs between systems. For that, we turn to reader Milan Apeltauer and his QFileSvr.400 solution that he sent me after the article was published.

    Cutting the Fat Out of My Technique?

    Milan Apeltauer checked in with a streamlined approach that replaces steps 5 and 6 of my solution with the elegant solution of using the QFileSvr.400 file system to easily move image files across systems. Here are the steps that Milan uses to send image catalogs and their associated image files between systems.

    1. Make sure your virtual optical device is created on both your source and your target machines (step 1 and part of step 2 in my original procedure). In addition, Milan’s technique requires that you also create the image catalog on both machines (the source and target) at the start, rather than creating it only on the source machine, as my article specified, and then recreating it on the target system through a CL program.

    To create an image catalog on your source and target machine, run the following Create Image Catalog (CRTIMGCLG) command.

    CRTIMGCLG IMGCLG(IMAGE_CAT) DIR('/imagedir) TYPE(*OPT) CRTDIR(*YES)
    

    Where IMAGE_CAT equals the name of your image catalog and /imagedir equals the AS/400 Integrated File System (AS/400 IFS) directory name where you want to store the catalog’s image files.

    This command creates the new image catalog and its associated AS/400 IFS image catalog directory on the system.

    2. Load the optical media into the image catalog on your source machine as a new image file entry. This can be done with the following Add Image Catalog Entry (ADDIMGCLGE) command.

    ADDIMGCLGE IMGCLG(IMAGE_CAT) FROMDEV(OPTxx) TOFILE(IMAGE_FILE) 
    IMGCLGIDX(1) REPLACE(*YES)
    

    Where IMAGE_CAT equals the name of your image catalog, OPTxx equals the name of your physical optical media reader where you read the loaded image from a CD or a DVD disk (for example, OPT01), and IMAGE_FILE equals the name of the image catalog entry you are creating. The Image Catalog Index (IMGCLGIDX) parameter is equal to 1 in this case so that we can always update and copy the first image catalog entry between the systems.

    At this point, your new image catalog file entry is created. You can view it and any other image files in that catalog by using the following Work with Image Catalog Entries (WRKIMGCLGE) command.

    WRKIMGCLGE IMGCLG(IMAGE_CAT)
    

    3. If you don’t already have one, create a QFileSvr.400 link on your target system that points to your source iSeries, System i, or Power i machine.

    QFileSvr.400 allows you to create AS/400 IFS links on one Power i OS system that point to an AS/400 IFS directory on another Power i OS system. These links can also be created on machines running earlier operating systems versions, including i5/OS and OS/400.

    IBM offers a primer on how to create a QFileSvr.400 link on your target system in Software Technical Document 19112808, Using QFileSvr.400. The only tricky requirement is that you must create the link by using a user ID that has the same password on both machines.

    In most cases, the AS/400 IFS directory name on your target system will be /QFileSvr.400/xxxxxxxxxx where xxxxxxxxxx equals the name of the source system.

    4. Here’s where Milan really taught me something. He replaced steps 4 through 6 in my solution with a single command that allows me to recreate an image catalog entry on my target system with the same image catalog entry from my source machine.

    To create an image catalog image file on your target system directly from the source system, run the following ADDIMGCLGE command on the target system.

    ADDIMGCLGE IMGCLG(IMAGE_CAT) FROMFILE('/QFileSvr.400/xxxxxxxxxx/imagedir/IMAGE_FILE) 
    IMGCLGIDX(1) REPLACE(*YES)
    

    Where again, xxxxxxxxxx equals the name of your source system, /imagedir equals the name of your image catalog directory, and IMAGE_FILE equals the name of the image file you are creating from the source system.

    And that’s it. Milan’s solution is elegantly simple and easy to run. The command can be called from a command line, scripted into a CL program, or run through a job scheduler such as Help/Systems’ Robot/SCHEDULE program. This is a really simple way to copy an image catalog file entry from one system to another.

    So a tip of my hat to Milan who showed me an easier way to transfer image catalog files from one iSeries, System i, or Power i machine to another.

    Two Solutions To Choose From . . . Or Is It Three?

    With my original article and Milan’s solution, we now have two ways to transfer image catalogs between i OS systems. Choose whichever one works better in your environment.

    But would you believe it? Another reader, Jeff Yanoviak, wrote in to tell that there is actually a third IBM-sanctioned way to transfer image catalogs between systems, starting in i OS 6.1. But that’s another article for another day.

    RELATED STORIES

    Admin Alert: Porting an Image Catalog Between Power i Boxes using FTP

    Admin Alert: Five Minutes to Moving System i Objects Between Partitions



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Maxava

    Migrate IBM i with Confidence

    Tired of costly and risky migrations? Maxava Migrate Live minimizes disruption with seamless transitions. Upgrading to Power10 or cloud hosted system, Maxava has you covered!

    Learn More

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    PowerTech:  2011 Security Event of the Year. September 22–23 in Las Vegas. RVSP today!
    New Generation Software:  BI comes in many flavors. Get info and FREE ice cream!
    System i Developer:  Join the Gurus at the RPG & DB2 Summit in St. Louis, October 17-19

    IT Jungle Store Top Book Picks

    BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The iSeries Pocket Database Guide: List Price, $59
    The iSeries Pocket SQL Guide: List Price, $59
    The iSeries Pocket WebFacing Primer: List Price, $39
    Migrating to WebSphere Express for iSeries: List Price, $49
    Getting Started with WebSphere Express for iSeries: List Price, $49
    The All-Everything Operating System: List Price, $35
    The Best Joomla! Tutorial Ever!: List Price, $19.95

    JD Edwards World Training Brought Back by JDEtips The IBM PC Turns 30

    Leave a Reply Cancel reply

Volume 11, Number 23 -- August 10, 2011
THIS ISSUE SPONSORED BY:

Bytware
SEQUEL Software
WorksRight Software

Table of Contents

  • Adobe Flash Builder for the iSeries Programmer, Part 1
  • ILE: Decisions, Decisions, Part 2
  • Admin Alert: An Alternate Way to Port Image Catalogs Between Systems: QFileSrv.400

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