Warning: Declaration of TCB_Menu_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /home/nicklit/www/www/wp-content/plugins/thrive-visual-editor/inc/classes/class-tcb-menu-walker.php on line 620

Warning: session_start(): Cannot start session when headers already sent in /home/nicklit/www/www/wp-content/plugins/userpro/includes/class-userpro.php on line 222
how to upload a savefile to IBM I [aka iSeries or AS400] using FTP - Nick Litten is IBM-i, AS400 iSeries RPG Programmer and Nerd

how to upload a savefile to IBM I [aka iSeries or AS400] using FTP

IBM i

Jun 08

I’m sometimes bemused by gaping holes in the IBMi operating arena.

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.

Question:

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?

Answer:

UPLOAD USING FTP

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:

FTP your-IBMi-machine

enter username

enter password

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:

ftp to as400

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.

Follow

About the Author

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.