Moving an IBM i file to a PC or from a PC

VLF Deployment Check Lists

 

Moving an IBM i file to a PC or from a PC

The commands XFLRTOSAVF and XSAVFTOFLR are useful when you want to move an IBM i save file to a PC (or vice versa). For example, the deploy cycle might be:

 

Step

Activity

How to Do It

 

Transform the deployment save file to a PC file on the IFS

Use XSAVFTOFLR command to create Bnn_ALL.SAV in any directory on the IFS (e.g. /temp) from the Bnn_ALL save file.

 

XSAVFTOFLR  PATH('/temp/Bnn_ALL.SAV') FILE(MYLIB/Bnn_ALL)

 

 

 

Copy the file to a PC folder and zip it

Copy Bnn_ALL.SAV to a PC folder and then zip up to produce Bnn_ALL.ZIP.

 

 

Move to target system

Move Bnn_ALL.ZIP like any file – copy, e-mail, web site download, CD, etc.

 

 

Unzip

At the target unzip Bnn_ALL.ZIP to produce Bnn_ALL.SAV

 

 

Copy to IFS

Copy Bnn_ALL.SAV to any directory on the IFS (e.g. /temp).

 

 

Transform to save file

Use XFLRTOSAVF to transfer Bnn_ALL.SAV into IBM i save file named Bnn_ALL

 

The file is now ready to be imported.

 

XFLRTOSAVF PATH('/temp/Bnn_ALL.SAV') FILE(MYLIB/Bnn_ALL)