Upload a SAVF using IFS and IBM i Access Client Solutions (no FTP)

IBM i

Apr 02

HOW TO UPLOAD SAVF to IBM i Systems

If you don’t use FTP anymore (or if FTP has been blocked by your network team) the easiest technique is to upload your SAVF to your IBM i’s Integrated File System and then copy it direct into a *SAVF — using IBM I Access Client Solutions.

Launch IBM i ACS

IBM i ACS > GENERAL > INTEGRATED FILE SYSTEM

You can click Integrated File System from the main screen or press the shortcut CTRL/I

Upload a SAVF using IFS and IBM i Access Client Solutions (no FTP) 1

Choose your IFS destination

Select the SAVF you want to upload from your download location on your PC (for example C:\download) and upload to your IFS folder (I suggest using /home/username – in this example I will be using /home/nick)

You can click ACTIONS > UPLOAD from the IF screen or press the shortcut CTRL/U

Upload a SAVF using IFS and IBM i Access Client Solutions (no FTP) 2

Select your SAVF on your PC and upload it:

Upload a SAVF using IFS and IBM i Access Client Solutions (no FTP) 3
Upload a SAVF using IFS and IBM i Access Client Solutions (no FTP) 4

Once uploaded you can use the CPY command to copy this uploaded SAVF into any IBM I *SAVF

Create a Save File to hold the uploaded file

CRTSAVF MYLIB/MYSAVF

Copy the uploaded *SAVF from the IFS into the actual Save File

This will convert it from PC format to IBM i format:

CPY OBJ(‘/home/username/savefilename.savf’) TOOBJ(‘/qsys.lib/mylib.lib/mysavf.file’) FROMCCSID(PCASCII) TOCCSID(37) REPLACE(YES)

Note the from obj is the exact file name of the upload it could be called anything. The file extension is not important.

Note that the to obj is the exact file name of the *SAVF you created. The file extension of .FILE is important

The FROMCCSID is PCASCII

The TOCCSID is the CCSID of your system

Check the SAVF contents

DSPSAVF mylib/mysavf

Now restore it and get on with the day with a cheeky grin…

Want to see a realtime upload and convert to *SAVF?

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.

%d bloggers like this: