PUB400.COM FAQ pages


This is a collection of frequently asked questions. Browse the categories and the entries listet below. Click on an entry title to view full text.
Connectivity   my user profile   data transfer  
  how to transfer data from and to PUB400.COM
how to transfer (general overview)
how to restore from a save file
How to save to a save file (shown below)
How to transfer save files

If you want to have a backup of some objects or want to transfer a library to your PC, you should (better: must) use a save file. Single source members can be transferred as a text file, but some information will be lost. A save file will keep all needed file/object/library information. Lets assume you have libraries YOURLIB1 and YOURLIB2 and you want to copy contents of YOURLIB1 to your PC.
First we need to create a save file as an empty container to receive the data. As you want to save a full library, the save file must reside in a different library. So we create it in YOURLIB2:
CRTSAVF YOURLIB2/MYSAVE TEXT(savefile)
This file is empty and needs to get some contents:
SAVLIB LIB(YOURLIB1) DEV(*SAVF) SAVF(YOURLIB2/MYSAVE)
This will copy the contents of library YOURLIB1 into the named device of type *SAVF and name MYSAVE in Library YOURLIB2. This command does have a lot more parameters, just press F4 instead of the ENTER key.
If you only want to save some single objects, you can use the SAVOBJ command, so you can select which objects to save. Use F4 to prompt the command and see all parameters. For example you want to save all program objects with a name beginning with "test":
SAVOBJ OBJ(TEST*) LIB(YOURLIB1) DEV(*SAVF) OBJTYPE(*PGM) SAVF(YOURLIB2/MYSAVE)


Having a question? Please visit the forum first...

This page was proudly delivered by an IBM Power9 server running IBM i 7.4