What do I mean by this?
The IBMi operating system is fantastically robust, powerful yet simple to use. It’s evolved from the early days of CPF on the System/3x machines, up through the OS400 years and now in its latest and greatest iteration of the ‘IBM i’ operating system. During this time the operating system has resolutely stuck to a command driven GUI (“Dont worry, I’m not going to moan about the lack of a point/click GUI interface today”). IBMi has incredible functionality in its ability to interface with any operating system in the world and really cool functions like the IFS – which makes the IBM i storage area look and act just like a windows server.
But here we are in 2012 and there is still no really simple way of transferring data to your IBMi system. Obviously there is more than one way to skin a cat, but the main techniques are (a) use the data transfer function in the IBM i Access client software or (b) use FTP to upload/download *SAVEFILES from your Windows/Apple/Linux/Machine of choice.
*SAVEFILES, or *SAVF as they are referred in IBMi land, are a special file that contains a backup of anything from an indivual IBMi object to a whole library of objects. Think of a *SAVF as the IBMi equivalent of a ZIP file.
Simply put we can just FTP a *SAVF up into IBMi very simply, but must remember to tell FTP a couple of things to let it know how to handle conversion of these special *SAVF data types.
Nick has emailed me a Windows ZIP file called PROJEXSHIP.ZIP – and this contains an IBMi file called PROJEXSHIP.SAVF – how to I upload this to my IBMi system?
Unzip the projexship.savf into a folder on your C: drive called C:\projex
OK, so now we have a *SAVF on your PC. It doesn’t really matter what the file extension is, but I use ‘.SAVF’ to keep things clear.
Now lets start FTP and send the SAVF to your your-IBMi-machine. If your in Windows just click START | RUN and enter ‘FTP’ as the command:
lcd \projex- switches you to the local directory called C:\Projex
cd QGPL- switches you to QGPL Library in IBMi
bin- go into binary transfer mode
put projexship.savf- this will upload the SAVF to your machine in file QGPL/PROJEXSHIP
…and thats it! if you did it properly, your FTP window should look something like this:
When the FTP process has completed you will have a *SAVF in QGPL called PROJEXSHIP. To check the check the save file is valid simply check that it contains the ProjexSHIP library using: DSPSAVF QGPL/PROJEXSHIP
Simple enough once you know what to do… but dont forget that BINARY command.
Obviously if you want to download a *SAVF just do it all in reverse.
IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.
What is IBM i Email and SPF?
How to capture IBM-i job info for submitted jobs
How to Install IBM Access Client Solutions (ACS)
5733XJ1 IBM i Access Client Solutions – QuickStartGuide
Install LANSA AXES – Automatic Web Interface for IBM i (AS/400) 5250 Applications
IFS File system error occurred. Error number 3021?
How to rename IFS Files
How to copy IBM i IFS folder
Preparing to implement IBM i iASP (Independent Auxiliary Storage Pool)