Setting up your iSeries 400 for class 

Horizontal line

Libraries you will need:

  1. Create the following libraries on your system:

    1. OPRLIB
    2. OPR00xx
    3. SWLBAS
    4. LAB4
    5. LAB10
    6. LAB11
  2. Lab10 and Lab11 will be empty libraries that you will use for those labs. 

  3. You may want to make backup copies of the OPRLIB so you can refresh it if you deleted items that you need by mistake.

Horizontal line

Create Save Files

  1. Create the following save files in your library (OPR00xx):

    1. OPRLIB
    2. SWLBAS
    3. LAB4
  2. Use the CRTSAVF command to create these save files in your library.

  3. They need to be empty as you are going to FTP these from your PC to the iSeries 400 in your library.

                   Create Save File (CRTSAVF)

  Type choices, press Enter.

  Save file . . . . . . . . . . . > LAB4    Name
  Library . . . . . . . . . . .    *CURLIB  Name, *CURLIB
  Text 'description' . . . . . . . *BLANK



 

Horizontal line

Save Files

  1. Below are links to the save files:

    1. OPRLIB  V5R1
    2. SWLBAS V4R3
    3. LAB4 V5R1
  2. To save the above files right click on the file and save it to your PC or media.

  3. These files are binary files.

Horizontal line

Transfer the above save files to your iSeries 400

  1. From the command line or with an FTP tool upload these save files to your iSeries 400.  

  2. Make sure you change the mode in FTP to binary before you upload the files. 

  3. FTP commands below.

Horizontal line

FTP Commands to upload the save files to your iSeries 400

  1. Go to the command prompt found in the Accessories folder.

  2. Assuming that the save file is stored in a folder titled AS400 on your computer on the C: drive and you have created the empty save files in your library and your server has the following IP address 67.116.99.251(or server name for example as4003.cerritos.edu) the following would the series of commands you should use.  What you type is in red.

C:>FTP 67.116.99.251
User :OPR00xx  (where xx is your number)
Password: enter your password
ftp>binary
ftp>put C:\AS400\lab4.savf
ftp>put c:\AS400\OPRLIB.savf
ftp>put c:\AS400\SWLBAS.savf
ftp>quit

Horizontal line

Restore the libraries from the Save Files to your system:

  1. Check the contents of your uploaded save files.  Verify that they contain the contents of the libraries prior to restoring them.  Use the DSPSAVF command to view the contents.

  2. Use the RSTLIB command to restore the files to your system.
     

                            Restore Library (RSTLIB)

      Type choices, press Enter.

      Saved library . . . . . . . . . > LAB4    Name, generic*, *NONSYS...
                   + for more values
      Device . . . . . . . . . . . . . > *SAVF  Name, *SAVF, *MEDDFN
                   + for more values
      Save file . . . . . . . . . . . > LAB4    Name
      Library . . . . . . . . . . .     *LIBL   Name, *LIBL, *CURLIB

     


   3.   Repeat the above command for all of the save files (OPRLIB, and SWLBAS).

Horizontal line

 

 

SaveFiles05.htm
Last updated 9/22/05