Skip to main content

Install the CFDEMO base library by hand

Step 4 of the IBM i reference-app setup. The reference app builds and runs against a base library (default CFDEMO) of compiled programs and demo data. CoderFlow can install it for you from the setup wizard — but you can also restore it by hand, directly on the IBM i. This page is that manual procedure.

The whole job is: create the library, transfer the cfdemo.savf save file into it, restore the objects, and delete the save file.

What you'll need​

  • A 5250 session on the IBM i and a way to transfer a file to it (FTP, SFTP, or IBM i Access Client Solutions).
  • A profile with authority to create a library (CRTLIB) and restore objects (RSTOBJ).
  • About 5 minutes.

1. Download cfdemo.savf​

Get cfdemo.savf from the latest ibmi/-prefixed release of the reference-apps repository:

github.com/ProfoundLogic/coderflow-reference-apps/releases

The releases that carry this save file are tagged ibmi/…. Open the most recent one and download the cfdemo.savf asset.

2. Create the base library​

Create the library the objects will be restored into. The default is CFDEMO; use another name if you prefer.

CRTLIB LIB(CFDEMO)

3. Transfer the save file into the library​

Create an empty save file named CFDEMO in that library, then transfer the downloaded cfdemo.savf into it using your choice of FTP, SFTP, or IBM i Access Client Solutions.

CRTSAVF FILE(CFDEMO/CFDEMO)

For the ACS controls, follow the illustrated save-file transfer steps. For this base library, use cfdemo.savf and /QSYS.LIB/CFDEMO.LIB in place of the Bridge installer file and library.

4. Restore the objects​

Restore everything from the save file into your library:

RSTOBJ OBJ(*ALL) SAVLIB(QTEMP) DEV(*SAVF) SAVF(CFDEMO/CFDEMO) RSTLIB(CFDEMO)

The RSTLIB parameter assumes the library name CFDEMO; if you chose a different name, change it (and the library qualifier in SAVF) to match.

5. Delete the save file​

DLTF FILE(CFDEMO/CFDEMO)

The base library is now installed. If you're setting this up for a CoderFlow user, they can tick the install step complete — the last step of the setup.