Yikes! You've noticed that you have a TON of Integrated File System (IFS) files on your system. What are they doing there?! Well, your iSeries system has been a unified file system for a while. Remember "shared folder" support? That functionality went away as soon as IBM created this hierarchical file system. It looks, tastes and smells like a Windows NT server to any unsuspecting PC linking to it.
What can I do with it?
For SMALL iSeries or AS/400 shops, you can store files on it as if it were a PC server. Store programs, store files -- it doesn't have the same limitations that Shared Folders had. Nor do you need a single morsel of IBM software to access it. This functionality is BUILT into Windows 98 and beyond. My preference is still Windows 2000 or XP Pro for accessing those files. Even better, you can now set up Client Access without even having the CD on you by accessing the directory where the programs are stored. (Look in the QIBM directory!)
Where do I begin? I'm DYING here -- WHEN ARE YOU GOING TO LET ME IN ON THIS SECRET?
To access these files from a green (or Emulation) screen, type WRKLNK or Work Link and press enter. This will display what YOU can access within the IFS. (Note: QSYS (shown as QSYS.LIB) is merely a directory WITHIN the IFS structure.) What can you do from here? Let's create a directory WITHIN the IFS.
On the iSeries system, type MD and prompt using F4. You can now CREATE directories within your IFS. "Hey, wait a second," you say. "That's a DOS command!" You bet -- your 400 understands some DOS.
You can also change directories, so you can create files under a directory. With CD (Change Directory), your "Current" directory is changed so you can perform IFS functions without long prefixes. There's also CD's synonym -- CHGCURDIR (Change Current Directory) -- the iSeries identical twin! (I wonder if there are some people who would NEVER use the command CD but would swear by CHGCURDIR as being more efficient and written for the 64-bit environment.) Do NOT confuse CHGCURDIR with CHGCURLIB -- as that command Changes your Current LIBRARY -- which is really related to the back-end programs.
Wow! This is too much fun. What ELSE can I do with this thing?
So, do you want to use your 400 as a file server? This exciting bit of software engineering is named iSeries NetServer, and it comes with the following standards in place. The system serial number, with a Q in front of it, is the name of the server. To find this, several steps need to be taken on your PC:
- Add a line to a file BURIED in Windows 2000 or Windows XP. It is in a subdirectory called /[windows directory]/system32/drivers/etc – where [windows directory] will be where your copy of windows is installed. There you will find two sample files Microsoft gives you: LMHOSTS.SAM and HOSTS.SAM. Inside those is a standard for declaring a sort of local name server for your PC. This helps it find your server and link up with them. Both files use the following format to declare a server.
xx.xx.xx.xx SERVERNAME Where ; xx.xx.xx.xx is the TCP/IP address of the server SERVERNAME is the name of the server
Next, "Save As" and remove the .SAM from the suffix. The file then becomes LMHOSTS.
Now you have this COOL file server, centrally stored by your nightly backups (you DO perform a SAV command each night, right?) which backs up the IFS and can then keep users' documents on a centrally located server.
Confusing? Let's summarize these terms:
- WRKLNK -- Work with IFS "Links" or Objects
- MD -- Make Directories (If I want a directory in HOME with my name on it, I'd use "MD /HOME/Andrew" assuming the directory HOME exists.)
- CD -- Change Current Directory
- CHGCURDIR -- Change Current Directory
- iSeries Net.Server -- iSeries IFS agent -- Makes the server look like a Windows NT server.
- LMHOSTS file -- A file for locating NetBios servers
- HOSTS file -- A file for locating TCP/IP servers
- PC -- Used to confuse and befuddle iSeries professionals
About the author: Andrew Borts is webmaster at United Auto Insurance Group in North Miami, Fla. He is often a frequent speaker at COMMON and past president of The Southern National Users Group, an AS/400 user group based in Deerfield, Fla.
- This tip mentions the usage of mapping a network drive to an IFS folder, which is extremely useful, but can potentially expose the iSeries as a storage location for viruses.
In order to propagate themselves, viruses tend to search for available drives, and if an iSeries folder is mapped to an infected PC, then the virus can move to the iSeries itself.
Therefore, a better alternative to mapping is to create a shortcut to the IFS folder instead, and then place the shortcut on the desktop. — Gary Edwards