Keep and move your work

Save objects, then restore a copy.

Use CL save commands and browser transfers for portable emulator archives.

Save a library

After creating LEARN in the first-library guide, create a save file and inspect the saved contents:

CRTSAVF FILE(QGPL/BACKUP)
SAVLIB LIB(LEARN) DEV(*SAVF) SAVF(QGPL/BACKUP)
DSPSAVF FILE(QGPL/BACKUP)

A save file is a *FILE object with attribute SAVF. A save file holds one named library for SAVLIB; multi-library saves use simulated tape. For a subsequent replacement save, use CLEAR(*ALL) explicitly. SAVOBJ selects objects; SAVCHGOBJ saves changed objects and members. Consult each command's supported options before relying on a partial save.

Download and upload

  1. In the free browser workstation, select the job and open Save files.
  2. Enter QGPL/BACKUP and download the .webisav container.
  3. On the destination machine, upload the container to a save file in an existing library. Choose replacement explicitly if that save file is nonempty.
  4. Upload populates the save file; it does not restore its objects. Run RSTLIB or RSTOBJ next.
RSTLIB SAVLIB(LEARN) DEV(*SAVF) SAVF(QGPL/BACKUP) RSTLIB(LEARNCOPY)
WRKOBJ OBJ(LEARNCOPY/*ALL)

Use a fresh destination library for this exercise. The renamed restore makes an independent copy, including PF member records and local LF references. The archive has bounded decoding, length and checksum checks. It is neither encrypted nor compressed and has a 64 MiB format limit.

Save IFS streams and links

After the IFS exercise, archive just that practice directory and restore it to a new location:

CRTSAVF FILE(QGPL/IFSBACK)
SAV DEV('/QSYS.LIB/QGPL.LIB/IFSBACK.FILE') OBJ(('/home/guide'))
RST DEV('/QSYS.LIB/QGPL.LIB/IFSBACK.FILE') OBJ(('/home/guide' *INCLUDE '/tmp/guide-copy'))

SAV/RST preserve streams, links, CCSID tags and basic metadata. QSYS.LIB uses the library/object commands instead. Queued jobs, active sessions, spool and complete authority recovery are not part of a portable library archive. SAVSYS and simulated tape do not create a bootable IBM system image.

Hosted checkpoints

The hosted dashboard also provides scheduled and manual checkpoints with whole persistent-system restore. Their downloadable .webisav contains user libraries; it excludes IFS and QSYS. Use the dashboard's checkpoint restore for those persistent keys. See hosted backups. FTP can move save containers in binary mode.